import { FieldNode } from "graphql"; import { ExecutionContext } from "./executeWithoutSchema"; export type FieldGroup = ReadonlyArray; export type GroupedFieldSet = Map; export interface PatchFields { label: string | undefined; groupedFieldSet: GroupedFieldSet; } export interface FieldsAndPatches { groupedFieldSet: GroupedFieldSet; patches: Array; } /** * Given a selectionSet, collects all of the fields and returns them. * * CollectFields requires the "runtime type" of an object. For a field that * returns an Interface or Union type, the "runtime type" will be the actual * object type returned by that field. * * @internal */ export declare function collectFields(exeContext: ExecutionContext, runtimeTypeName: string): FieldsAndPatches; /** * Given an array of field nodes, collects all of the subfields of the passed * in fields, and returns them at the end. * * CollectSubFields requires the "return type" of an object. For a field that * returns an Interface or Union type, the "return type" will be the actual * object type returned by that field. * * @internal */ export declare function collectSubfields(exeContext: ExecutionContext, returnTypeName: string, fieldGroup: FieldGroup): FieldsAndPatches; //# sourceMappingURL=collectFields.d.ts.map