import type { MangoQuery, RxCollection, RxDocument } from '../../../types/index.d.ts'; export type UseRxQueryOptions = { collection: string | RxCollection; query: MangoQuery; }; export type UseRxQueryResult = { results: RxDocument[]; loading: boolean; error: string | null; }; /** * React hook to query an RxDB collection with Mango queries. * * @param {UseRxQueryOptions} options - Options for the query. * @param {string|RxCollection} options.collection - The collection name or instance to query. * @param {MangoQuery} options.query - The Mango query to execute. * @param {boolean} [options.live] - Whether to subscribe to live query updates. * * @returns {UseRxQueryResult} The query result, loading state, and error. */ export declare function useRxQueryBase({ collection, query, live, }: UseRxQueryOptions & { live: boolean; }): UseRxQueryResult; export declare function useRxQuery({ collection, query, }: UseRxQueryOptions): UseRxQueryResult;