@scalar/api-client
Version:
the open source API testing client
49 lines • 2.13 kB
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
import type { TraversedExample } from '@scalar/workspace-store/schemas/navigation';
/**
* Command Palette Example Component
*
* Provides a form for creating a new example for an API operation.
* Users can name the example, select a document (collection), and choose an operation.
* Automatically navigates to the example route which creates the example.
*
* @example
* <CommandPaletteExample
* :workspaceStore="workspaceStore"
* @close="handleClose"
* @back="handleBack"
* />
*/
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: import("vue").DefineComponent<{
/** The workspace store for accessing documents and operations */
workspaceStore: WorkspaceStore;
/** Event bus for emitting operation creation events */
eventBus: WorkspaceEventBus;
/** Document id to create the example for */
documentName?: string;
/** Preselected path and method to create the example for */
operationId?: string;
/** Existing example for edit mode */
example?: TraversedExample;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
close: () => any;
back: (keyboardEvent: KeyboardEvent) => any;
}, string, import("vue").PublicProps, Readonly<{
/** The workspace store for accessing documents and operations */
workspaceStore: WorkspaceStore;
/** Event bus for emitting operation creation events */
eventBus: WorkspaceEventBus;
/** Document id to create the example for */
documentName?: string;
/** Preselected path and method to create the example for */
operationId?: string;
/** Existing example for edit mode */
example?: TraversedExample;
}> & Readonly<{
onClose?: (() => any) | undefined;
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
//# sourceMappingURL=CommandPaletteExample.vue.d.ts.map