/** * store-url.ts — parse and instantiate stores from URL-like strings used by * `fozikio migrate` to identify source and destination stores. * * Supported forms: * sqlite:./relative/path.db * sqlite:/absolute/path.db?namespace=foo * firestore:my-gcp-project * firestore:my-gcp-project?database=my-db&namespace=foo * json:./backup.json */ import type { CortexStore } from '../core/store.js'; export type StoreKind = 'sqlite' | 'firestore' | 'json'; export interface ParsedStoreUrl { kind: StoreKind; options: { /** sqlite/json: filesystem path. */ path?: string; /** firestore: GCP project id. */ projectId?: string; /** firestore: database id (defaults to '(default)' when unset). */ databaseId?: string; /** Namespace prefix to bind the store to. */ namespace?: string; }; } /** * Parse a store URL. Throws a clear error if the scheme is missing/unknown so * callers (CLI) can surface it directly to the user without wrapping. */ export declare function parseStoreUrl(url: string): ParsedStoreUrl; /** * Build a `CortexStore` for the URL. SQLite and Firestore are delegated to * `createStore()` after synthesizing a minimal `CortexConfig`. JSON is created * directly because it isn't part of the runtime config schema. */ export declare function createStoreFromUrl(url: string): Promise; //# sourceMappingURL=store-url.d.ts.map