1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 11:10:41 +02:00
Files
php-flarum/js/dist-typings/forum/utils/UserControls.d.ts
flarum-bot c3a684c7ed Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-12 23:29:46 +00:00

123 lines
3.4 KiB
TypeScript

declare namespace _default {
/**
* Get a list of controls for a user.
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @public
*/
function controls(user: any, context: any): ItemList;
/**
* Get a list of controls for a user.
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @public
*/
function controls(user: any, context: any): ItemList;
/**
* Get controls for a user pertaining to the current user (e.g. poke, follow).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function userControls(): ItemList;
/**
* Get controls for a user pertaining to the current user (e.g. poke, follow).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function userControls(): ItemList;
/**
* Get controls for a user pertaining to moderation (e.g. suspend, edit).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function moderationControls(user: any): ItemList;
/**
* Get controls for a user pertaining to moderation (e.g. suspend, edit).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function moderationControls(user: any): ItemList;
/**
* Get controls for a user which are destructive (e.g. delete).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function destructiveControls(user: any): ItemList;
/**
* Get controls for a user which are destructive (e.g. delete).
*
* @param {User} user
* @param {*} context The parent component under which the controls menu will
* be displayed.
* @return {ItemList}
* @protected
*/
function destructiveControls(user: any): ItemList;
/**
* Delete the user.
*
* @param {User} user
*/
function deleteAction(user: any): void;
/**
* Delete the user.
*
* @param {User} user
*/
function deleteAction(user: any): void;
/**
* Show deletion alert of user.
*
* @param {User} user
* @param {string} type
*/
function showDeletionAlert(user: any, type: string): void;
/**
* Show deletion alert of user.
*
* @param {User} user
* @param {string} type
*/
function showDeletionAlert(user: any, type: string): void;
/**
* Edit the user.
*
* @param {User} user
*/
function editAction(user: any): void;
/**
* Edit the user.
*
* @param {User} user
*/
function editAction(user: any): void;
}
export default _default;
import ItemList from "../../common/utils/ItemList";