declare namespace _default { /** * Get a list of controls for a discussion. * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @public */ function controls(discussion: any, context: any): ItemList; /** * Get a list of controls for a discussion. * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @public */ function controls(discussion: any, context: any): ItemList; /** * Get controls for a discussion pertaining to the current user (e.g. reply, * follow). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function userControls(discussion: any, context: any): ItemList; /** * Get controls for a discussion pertaining to the current user (e.g. reply, * follow). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function userControls(discussion: any, context: any): ItemList; /** * Get controls for a discussion pertaining to moderation (e.g. rename, lock). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function moderationControls(discussion: any): ItemList; /** * Get controls for a discussion pertaining to moderation (e.g. rename, lock). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function moderationControls(discussion: any): ItemList; /** * Get controls for a discussion which are destructive (e.g. delete). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function destructiveControls(discussion: any): ItemList; /** * Get controls for a discussion which are destructive (e.g. delete). * * @param {Discussion} discussion * @param {*} context The parent component under which the controls menu will * be displayed. * @return {ItemList} * @protected */ function destructiveControls(discussion: any): ItemList; /** * Open the reply composer for the discussion. A promise will be returned, * which resolves when the composer opens successfully. If the user is not * logged in, they will be prompted. If they don't have permission to * reply, the promise will be rejected. * * @param {Boolean} goToLast Whether or not to scroll down to the last post if * the discussion is being viewed. * @param {Boolean} forceRefresh Whether or not to force a reload of the * composer component, even if it is already open for this discussion. * @return {Promise} */ function replyAction(goToLast: boolean, forceRefresh: boolean): Promise; /** * Open the reply composer for the discussion. A promise will be returned, * which resolves when the composer opens successfully. If the user is not * logged in, they will be prompted. If they don't have permission to * reply, the promise will be rejected. * * @param {Boolean} goToLast Whether or not to scroll down to the last post if * the discussion is being viewed. * @param {Boolean} forceRefresh Whether or not to force a reload of the * composer component, even if it is already open for this discussion. * @return {Promise} */ function replyAction(goToLast: boolean, forceRefresh: boolean): Promise; /** * Hide a discussion. * * @return {Promise} */ function hideAction(): Promise; /** * Hide a discussion. * * @return {Promise} */ function hideAction(): Promise; /** * Restore a discussion. * * @return {Promise} */ function restoreAction(): Promise; /** * Restore a discussion. * * @return {Promise} */ function restoreAction(): Promise; /** * Delete the discussion after confirming with the user. * * @return {Promise} */ function deleteAction(): Promise; /** * Delete the discussion after confirming with the user. * * @return {Promise} */ function deleteAction(): Promise; /** * Rename the discussion. * * @return {Promise} */ function renameAction(): Promise; /** * Rename the discussion. * * @return {Promise} */ function renameAction(): Promise; } export default _default; import ItemList from "../../common/utils/ItemList";