import { useQuery as zeroUseQuery } from '@rocicorp/zero/react'; import { type Context } from 'react'; import { type PlainQueryFn } from './resolveQuery'; import type { AnyQueryRegistry, HumanReadable, Query, Schema as ZeroSchema, TTL } from '@rocicorp/zero'; export type QueryControlMode = false | 'empty' | 'last-value'; export type UseQueryOptions = { enabled?: boolean | undefined; ttl?: TTL | undefined; }; type QueryResultDetails = ReturnType[1]; export type QueryResult = readonly [HumanReadable, QueryResultDetails]; export type { PlainQueryFn }; export type UseQueryHook = { (fn: PlainQueryFn>, params: TArg, options?: UseQueryOptions | boolean): QueryResult; (fn: PlainQueryFn>, options?: UseQueryOptions | boolean): QueryResult; }; export declare function emptyResponseFor(queryRequest: unknown): readonly [unknown, { type: string; }]; export declare function parseUseQueryArgs(paramsOrOptions: any, optionsArg: any): { params: any; options: any; }; export declare function createUseQuery({ DisabledContext, customQueries, }: { DisabledContext: Context; customQueries: AnyQueryRegistry; }): UseQueryHook; //# sourceMappingURL=createUseQuery.d.ts.map