import type { AuthenticationConfiguration } from '@scalar/types/api-reference'; import type { WorkspaceStore } from '@scalar/workspace-store/client'; import type { ApiReferenceEvents, WorkspaceEventBus } from '@scalar/workspace-store/events'; import { type Ref } from 'vue'; type Hook = Partial<{ onBeforeExecute: (payload: ApiReferenceEvents[T]) => void | Promise | ApiReferenceEvents[T] | Promise; onAfterExecute: (payload: ApiReferenceEvents[T]) => void | Promise; }>; type Hooks = { [key in keyof ApiReferenceEvents]?: Hook; }; /** * Initializes all Workspace Event Handlers by subscribing eventBus listeners * to each relevant mutator operation. Hooks are used for before/after execution. * * @param eventBus The WorkspaceEventBus to subscribe to * @param store The WorkspaceStore instance * @param hooks Object containing optional before/after hooks for each event */ export declare function initializeWorkspaceEventHandlers({ eventBus: bus, store, hooks, getConfiguredSecuritySchemes, }: { eventBus: WorkspaceEventBus; store: Ref; hooks: Hooks; /** Read current defaults when a name is edited, including after a configuration change. */ getConfiguredSecuritySchemes?: () => AuthenticationConfiguration['securitySchemes']; }): () => void; export {}; //# sourceMappingURL=workspace-events.d.ts.map