import { ViewActionContext } from '../types.ts'; export interface IFileListAction { /** Unique ID */ id: string; /** Translated name of the action */ displayName: (context: ViewActionContext) => string; /** Raw svg string */ iconSvgInline?: (context: ViewActionContext) => string; /** Sort order */ order: number; /** * Condition whether this action is shown or not */ enabled?: (context: ViewActionContext) => boolean; /** * Function executed on single file action * * @return true if the action was executed successfully, * false otherwise and null if the action is silent/undefined. * @throws {Error} If the action failed */ exec: (context: ViewActionContext) => Promise; } /** * Register a new file list action. * * @param action - The file list action to register */ export declare function registerFileListAction(action: IFileListAction): void; /** * Get all currently registered file list actions. */ export declare function getFileListActions(): IFileListAction[];