import type { DocumentNode, OperationVariables, TypedDocumentNode } from "../../core/index.js"; import type { QueryReference } from "../internal/index.js"; import type { BackgroundQueryHookOptions, NoInfer } from "../types/types.js"; import type { FetchMoreFunction, RefetchFunction } from "./useSuspenseQuery.js"; import type { DeepPartial } from "../../utilities/index.js"; import type { SkipToken } from "./constants.js"; export type UseBackgroundQueryResult = { fetchMore: FetchMoreFunction; refetch: RefetchFunction; }; type BackgroundQueryHookOptionsNoInfer = BackgroundQueryHookOptions, NoInfer>; export declare function useBackgroundQuery, "variables">>(query: DocumentNode | TypedDocumentNode, options?: BackgroundQueryHookOptionsNoInfer & TOptions): [ (QueryReference | undefined : TData | undefined : TOptions["returnPartialData"] extends true ? DeepPartial : TData, TVariables> | (TOptions["skip"] extends boolean ? undefined : never)), UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: BackgroundQueryHookOptionsNoInfer & { returnPartialData: true; errorPolicy: "ignore" | "all"; }): [ QueryReference | undefined, TVariables>, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: BackgroundQueryHookOptionsNoInfer & { errorPolicy: "ignore" | "all"; }): [ QueryReference, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: BackgroundQueryHookOptionsNoInfer & { skip: boolean; returnPartialData: true; }): [ QueryReference, TVariables> | undefined, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: BackgroundQueryHookOptionsNoInfer & { returnPartialData: true; }): [ QueryReference, TVariables>, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: BackgroundQueryHookOptionsNoInfer & { skip: boolean; }): [ QueryReference | undefined, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options?: BackgroundQueryHookOptionsNoInfer): [ QueryReference, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: SkipToken): [undefined, UseBackgroundQueryResult]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options: SkipToken | (BackgroundQueryHookOptionsNoInfer & { returnPartialData: true; })): [ QueryReference, TVariables> | undefined, UseBackgroundQueryResult ]; export declare function useBackgroundQuery(query: DocumentNode | TypedDocumentNode, options?: SkipToken | BackgroundQueryHookOptionsNoInfer): [ QueryReference | undefined, UseBackgroundQueryResult ]; export {}; //# sourceMappingURL=useBackgroundQuery.d.ts.map