import { MoltenDbClient } from "@moltendb-web/query"; import { DbEvent } from "@moltendb-web/core"; /** Functional injection hook to access the MoltenDb Query Client. */ export declare function moltendbClient(): MoltenDbClient; /** Returns true if this tab is the Leader (running the WASM worker). */ export declare function moltenDbIsLeader(): boolean; /** * Flushes and closes the OPFS sync handle. * Call this before `moltenDbTerminate()` to avoid "No modification allowed" errors. */ export declare function moltenDbClearOpfs(): Promise; /** Terminates the MoltenDb worker. Call after clearing OPFS storage. */ export declare function moltenDbTerminate(): void; /** * Subscribe to real-time MoltenDb mutation events. * The subscription is automatically cleaned up when the injection context (component/service) is destroyed. * No manual unsubscription or ngOnDestroy needed. * Must be run in injection context (component/service). */ export declare function moltenDbEvents(listener: (event: DbEvent) => void): void;