Flarum (v2.0.0-beta.4)
    Preparing search index...
    PostControls: {
        controls(post: Post, context: Component<any, any>): ItemList<Children>;
        deleteAction(context: any): Promise<void>;
        destructiveControls(
            post: Post,
            context: Component<any, any>,
        ): ItemList<Children>;
        editAction(): Promise<void>;
        hideAction(): Promise<void>;
        moderationControls(
            post: Post,
            context: Component<any, any>,
        ): ItemList<Children>;
        restoreAction(): Promise<void>;
        sections(): {
            destructive: (
                post: Post,
                context: Component<any, any>,
            ) => ItemList<Children>;
            moderation: (
                post: Post,
                context: Component<any, any>,
            ) => ItemList<Children>;
            user: (post: Post, context: Component<any, any>) => ItemList<Children>;
        };
        userControls(post: Post, context: Component<any, any>): ItemList<Children>;
    } = ...

    The PostControls utility constructs a list of buttons for a post which perform actions on it.

    Type Declaration