import type { CompiledArtefactModule } from "@graphitation/apollo-react-relay-duct-tape-compiler"; import type { FragmentReference } from "./types"; import type { FetchPolicy } from "../../types"; export interface Disposable { dispose(): void; } export type RefetchFn = (variables: Partial, options?: RefetchOptions) => Disposable; export interface RefetchOptions { onComplete?: (error: Error | null) => void; /** * @deprecated Use `onComplete` to match the Relay API. */ onCompleted?: (error: Error | null) => void; fetchPolicy?: FetchPolicy; } /** * These do not exist in the Relay API and should not be exported from the package. */ export interface PrivateRefetchOptions extends Omit { /** * Returns the fetched data. */ UNSTABLE_onCompletedWithData?: (error: Error | null, data: Record | null) => void; fetchPolicy?: FetchPolicy | "no-cache"; } export declare function useCompiledRefetchableFragment(documents: CompiledArtefactModule, fragmentReference: FragmentReference): [data: object, refetch: RefetchFn]; //# sourceMappingURL=useCompiledRefetchableFragment.d.ts.map