Flarum (v2.0.0-beta.4)
    Preparing search index...
    UserControls: {
        controls(user: User, context: Component<any, any>): ItemList<Children>;
        deleteAction(user: User): void;
        destructiveControls(user: User): ItemList<Children>;
        editAction(user: User): void;
        moderationControls(user: User): ItemList<Children>;
        showDeletionAlert(user: User, type: string): void;
        userControls(): ItemList<Children>;
    } = ...

    The UserControls utility constructs a list of buttons for a user which perform actions on it.

    Type Declaration