@scalar/api-client
Version:
the open source API testing client
17 lines • 952 B
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
import { type ShallowRef } from 'vue';
import { type Router } from 'vue-router';
export declare function initializeAppEventHandlers({ eventBus, store, router, rebuildSidebar, navigateToCurrentTab, onSelectSidebarItem, onAfterExampleCreation, onCopyTabUrl, onToggleSidebar, renameWorkspace, }: {
eventBus: WorkspaceEventBus;
store: ShallowRef<WorkspaceStore | null>;
router: Router;
rebuildSidebar: (documentName?: string) => void;
navigateToCurrentTab: () => Promise<void>;
onSelectSidebarItem: (id: string) => void;
onAfterExampleCreation: (o: OperationExampleMeta) => void;
onCopyTabUrl: (tabIndex: number) => void;
onToggleSidebar: () => void;
renameWorkspace: (name: string) => Promise<void>;
}): void;
//# sourceMappingURL=app-events.d.ts.map