/**
 * PGlite Database
 * Instance pool and SQL request handlers for in-browser Postgres
 */
type PGlite = import('@electric-sql/pglite').PGlite;
export declare function loadPGliteAssets(): Promise<{
    wasmModule: WebAssembly.Module;
    fsBundle: Blob;
}>;
export declare function initPGliteInstance(name: string, schemaSQL: string | null, idbPath?: string, namespace?: string): Promise<void>;
export declare function closePGliteInstance(name: string, namespace?: string): Promise<void>;
export declare function closeAllPGlite(): Promise<void>;
export declare function getInstanceNames(): string[];
export declare function getInstance(name: string, namespace?: string): PGlite | undefined;
export declare function applyPendingMigrations(vfs: import('../virtual-fs').VirtualFS, dbName: string, namespace?: string): Promise<{
    applied: string[];
    errors: string[];
}>;
export declare function initAndMigrate(name: string, vfs: import('../virtual-fs').VirtualFS, idbPath?: string, namespace?: string): Promise<void>;
export interface DatabaseRequestResult {
    statusCode: number;
    body: string;
}
export declare function handleDatabaseRequest(operation: string, body: any, dbName?: string, namespace?: string): Promise<DatabaseRequestResult>;
export {};
//# sourceMappingURL=pglite-database.d.ts.map