@scalar/api-client
Version:
the open source API testing client
44 lines • 1.84 kB
TypeScript
import type { WorkspaceStore } from '@scalar/workspace-store/client';
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
/**
* Command Palette Import cURL Component
*
* Provides a form for importing API requests from cURL commands.
* Parses the cURL command to extract the HTTP method, URL, path, headers,
* and body, then creates a new operation in the selected document.
*
* Validates that no conflicting operation exists at the same path/method.
*
* @example
* <CommandPaletteImportCurl
* :workspaceStore="workspaceStore"
* :eventBus="eventBus"
* :curl="curlCommand"
* @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;
/** The cURL command string to parse and import */
inputValue: string;
}, {}, {}, {}, {}, 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;
/** The cURL command string to parse and import */
inputValue: string;
}> & Readonly<{
onClose?: (() => any) | undefined;
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
//# sourceMappingURL=CommandPaletteImportCurl.vue.d.ts.map