import type { BaseGeneratedSchema } from '..'; import type { Selection } from '../../Selection'; import type { CreateLegacyMethodOptions } from './client'; import type { LegacyInlineResolved } from './inlineResolved'; export type LegacyRefetch = { (fn: (schema: TSchema) => TData): Promise; (accessor: TData): Promise; }; export declare const createRefetch: ({ cache, fetchOptions, inlineResolved, selectionHistory, }: CreateLegacyMethodOptions & { /** Valid scalar selections for refetching. */ selectionHistory: Set; inlineResolved: LegacyInlineResolved; }) => LegacyRefetch;