/**
 * Database Manager
 * localStorage-based registry of named PGlite databases
 */
export interface DatabaseEntry {
    name: string;
    createdAt: string;
    storageKey?: string;
}
export declare function getDatabaseNamespace(): string;
export declare function setDatabaseNamespace(namespace: string | null | undefined): string;
export declare function listDatabases(namespace?: string): DatabaseEntry[];
export declare function createDatabase(name: string, namespace?: string): DatabaseEntry;
export declare function deleteDatabase(name: string, namespace?: string): void;
export declare function getActiveDatabase(namespace?: string): string | null;
export declare function setActiveDatabase(name: string, namespace?: string): void;
/**
 * Ensure a default database exists. Called on first launch.
 * Returns the name of the active database.
 */
export declare function ensureDefaultDatabase(namespace?: string, preferredName?: string): string;
/** Returns the idb:// path for PGlite to use for IndexedDB persistence */
export declare function getIdbPath(name: string, namespace?: string): string;
//# sourceMappingURL=db-manager.d.ts.map