type FieldSpec = string | Record; /** * Convenience factory for building GraphQL selection sets in tests. */ export declare class SelectionSetFactory { /** * Build a GraphQL selection set string from a simplified spec. * * @example * SelectionSetFactory.gql(['id', 'name', { drugs: ['id', 'drugName'] }]) * // => '{ id name drugs { id drugName } }' */ static gql(fields: FieldSpec[]): string; /** * Build a select object from a simplified spec. * * @example * SelectionSetFactory.select(['id', 'name', { drugs: ['id', 'drugName'] }]) * // => { id: true, name: true, drugs: { select: { id: true, drugName: true } } } */ static select(fields: FieldSpec[]): Record; } export {}; //# sourceMappingURL=selection-set-factory.d.ts.map