import { ISidebarContext } from './SidebarTab.ts'; /** * Implementation of a custom sidebar tab within the files app. */ export interface ISidebarAction { /** * Unique id of the sidebar tab. * This has to conform to the HTML id attribute specification. */ id: string; /** * The order of this tab. * Use a low number to make this tab ordered in front. */ order: number; /** * The localized name of the sidebar tab. * * @param context - The current context of the files app */ displayName(context: ISidebarContext): string; /** * The icon, as SVG, of the sidebar tab. * * @param context - The current context of the files app */ iconSvgInline(context: ISidebarContext): string; /** * Callback to check if the sidebar tab should be shown for the selected node. * * @param context - The current context of the files app */ enabled(context: ISidebarContext): boolean; /** * Handle the sidebar action. * * @param context - The current context of the files app */ onClick(context: ISidebarContext): void; } /** * Register a new sidebar action. * * @param action - The sidebar action to register * @throws {Error} If the provided action is not a valid sidebar action and thus cannot be registered. */ export declare function registerSidebarAction(action: ISidebarAction): void; /** * Get all currently registered sidebar actions. */ export declare function getSidebarActions(): ISidebarAction[];