import { Express, RequestHandler } from "express"; import { Viewer } from "../../core/base"; import { GraphQLSchema } from "graphql"; import supertest from "supertest"; export declare type Option = [string, any]; interface queryConfig { viewer?: Viewer; init?: (app: Express) => void; test?: supertest.SuperTest | ((express: Express) => supertest.SuperTest); schema: GraphQLSchema; headers?: object; debugMode?: boolean; args: {}; expectedStatus?: number; expectedError?: string | RegExp; callback?: (res: supertest.Response) => void; inlineFragmentRoot?: string; customHandlers?: RequestHandler[]; } export interface queryRootConfig extends queryConfig { root: string; rootQueryNull?: boolean; nullQueryPaths?: string[]; undefinedQueryPaths?: string[]; } export declare function expectQueryFromRoot(config: queryRootConfig, ...options: Option[]): Promise>; export interface mutationRootConfig extends queryConfig { mutation: string; disableInputWrapping?: boolean; } export declare function expectMutation(config: mutationRootConfig, ...options: Option[]): Promise>; export {};