export type SeedPhase = "idle" | "downloading" | "extracting" | "importing" | "indexing" | "done" | "failed"; export interface SeedState { phase: SeedPhase; inserted: number; totalEstimate: number; error: string | null; } export declare function getSeedState(): Readonly; export declare function isSeeding(): boolean; export declare function seedPercent(): number; export declare function seedProgressMessage(): string; export declare function setSeedPhase(phase: SeedPhase): void; export declare function setSeedInserted(count: number): void; export declare function setSeedError(err: unknown): void; /** * Start seeding if not already running. Returns the existing promise if * a seed is in progress (prevents concurrent seedDatabase() runs racing * on tmpDbPath and dataset.zip). */ export declare function startSeed(run: () => Promise): Promise;