import { Validator, UnwrapBody } from '../types'; export declare function toGql(fn: string, params: object | null, type: T): string; export type GqlReturn = T extends Validator ? UnwrapBody : T extends [Validator] ? UnwrapBody[] : null;