import { Signal } from "@angular/core"; import { MoltenDbClient } from "@moltendb-web/query"; export interface MoltenDbResource { value: Signal; isLoading: Signal; error: Signal; } export interface MoltenDbResourceOptions { /** * Value the `value` signal starts with, before the first fetch resolves in * the browser — and what it stays at (unchanged) on the server, since no * fetch is ever attempted there. Defaults to `undefined` when omitted. */ initialValue?: T; } export declare function moltenDbResource(collection: string, queryFn: (collection: ReturnType, client: MoltenDbClient) => Promise, options?: MoltenDbResourceOptions): MoltenDbResource;