import { DocumentNode } from "graphql"; interface ConnectionMetadata { forwardCountVariable?: string; forwardCursorVariable?: string; backwardCountVariable?: string; backwardCursorVariable?: string; filterVariableDefaults?: Record; selectionPath: string[]; } export interface Metadata { rootSelection?: string; mainFragment?: { name: string; typeCondition: string; }; connection?: ConnectionMetadata; } /** * This transform extracts metadata needed at runtime for the `use*Fragment` * hooks to do their work efficiently. This includes: * * - Whether or not the observed data starts at the root of the operation or at * the `node` root-field. * - The name and type-condition of the fragment. * - Connection metadata such as location of the connection inside the fragment * and the names of the various connection variables. * * @param document The watch query document * @returns The metadata needed at runtime */ export declare function extractMetadataTransform(document: DocumentNode): Metadata | undefined; export {}; //# sourceMappingURL=extractMetadataTransform.d.ts.map