import { IFileAction, IFileListAction } from './actions/index.ts'; import { IFileListFilter } from './filters/index.ts'; import { IFileListHeader } from './headers/index.ts'; import { TypedEventTarget } from 'typescript-event-target'; interface FilesRegistryEvents { 'register:action': RegistrationEvent; 'register:listAction': RegistrationEvent; 'register:listFilter': RegistrationEvent; 'register:listHeader': RegistrationEvent; 'unregister:listFilter': UnregisterEvent; } /** * Custom event for registry events. * The detail is the registered item. */ declare class RegistrationEvent extends CustomEvent { } /** * Custom event for unregistering items from the registry. * The detail is the id of the unregistered item. */ declare class UnregisterEvent extends RegistrationEvent { } /** * The registry for files app. * This is used to keep track of registered actions, filters, headers, etc. and to emit events when new items are registered. * Allowing to keep a reactive state of the registered items in the UI without being coupled to one specific reactivity framework. * * This is an internal implementation detail and should not be used directly. * * @internal * @see PublicFilesRegistry - for the public API to listen to registry events. */ export declare class FilesRegistry extends TypedEventTarget { } /** * The registry for files app. * This is used to keep track of registered actions, filters, headers, etc. and to emit events when new items are registered. * Allowing to keep a reactive state of the registered items in the UI without being coupled to one specific reactivity framework. */ export type PublicFilesRegistry = Pick; /** * Get the global files registry. * * @internal */ export declare function getRegistry(): FilesRegistry; /** * Get the global files registry. * * This allows to listen for new registrations of actions, filters, headers, etc. * Events are dispatched by the respective registration functions. */ export declare function getFilesRegistry(): PublicFilesRegistry; export {};