import { type SmrtWebCollection, type SmrtWebDataQueryRequest, type SmrtWebDataQueryResult, type SmrtWebQueryLiveSubscription, type SmrtWebQueryRunOptions, type SmrtWebQueryState, type SmrtWebQueryTransport } from '@happyvertical/smrt-web'; export interface RemoteQueryBinding { readonly rows: ReadonlyArray; readonly page: SmrtWebQueryState['page']; readonly total: SmrtWebQueryState['total']; readonly loading: boolean; readonly refreshing: boolean; readonly stale: boolean; readonly error: unknown; readonly lastUpdated: number | undefined; /** Latest applied result, including query-scoped live replacements. */ readonly result?: SmrtWebDataQueryResult | undefined; readonly request: SmrtWebDataQueryRequest | undefined; execute(request: SmrtWebDataQueryRequest, options?: SmrtWebQueryRunOptions): Promise; refresh(options?: Omit): Promise; retry(): Promise; subscribeLive(): SmrtWebQueryLiveSubscription | undefined; dispose(): void; } /** * Bind a canonical remote query to Svelte 5 state. The binding is query * shaped: rows are only the requested page and never the entire collection. * Call during component initialization so cleanup follows the component. */ export declare function remoteQuery(collection: SmrtWebCollection, transport: SmrtWebQueryTransport, options?: { staleTimeMs?: number; }): RemoteQueryBinding; //# sourceMappingURL=remote-query.svelte.d.ts.map