/** * Client wire face for the plugin's own `/firecrawl/api` route. The host * calls the settings seam in-process, so the browser never depends on the * api-proxy allowlist that would otherwise keep third-party namespaces out. * @module @elves-ai/dsh-web-search-firecrawl/client/api */ /** One redacted secret slot (`set` tells whether a value is configured). */ export interface FirecrawlSettingsSecretView { path: string[]; set: boolean; } /** Redacted settings view returned by `settings.get` / `settings.mutate`. */ export interface FirecrawlSettingsView { value: unknown; revision: number; base?: unknown; user?: unknown; applies: 'live' | 'restart'; secrets?: FirecrawlSettingsSecretView[]; writable: boolean; } /** One path-addressed settings edit sent to the host route. */ export type FirecrawlSettingsOp = { op: 'set'; path: [string]; value: unknown; } | { op: 'unset'; path: [string]; }; /** Wire error with the route's machine code. */ export declare class FirecrawlSettingsApiError extends Error { readonly code: string; constructor(code: string, message: string); } /** Read the current redacted Firecrawl settings view. */ export declare function getFirecrawlSettings(): Promise; /** Apply path ops and return the fresh redacted view. */ export declare function mutateFirecrawlSettings(ops: readonly FirecrawlSettingsOp[], expectedRevision?: number): Promise; /** True when the write-only `apiKey` slot currently holds a value. */ export declare function isApiKeyConfigured(view: FirecrawlSettingsView): boolean;