import {Change} from '@graphql-inspector/core'; import {GraphQLSchema, Source} from 'graphql'; import {CheckConclusion, ActionResult, PullRequest} from './types'; export declare type DiffInterceptor = | string | { url: string; headers?: { [header: string]: string; }; }; export interface DiffInterceptorPayload { pullRequests?: PullRequest[]; ref?: string; changes: Change[]; } export declare type DiffInterceptorResponse = { changes: Change[]; conclusion?: CheckConclusion; }; export declare function diff({ path, schemas, sources, interceptor, pullRequests, ref, }: { path: string; schemas: { old: GraphQLSchema; new: GraphQLSchema; }; sources: { old: Source; new: Source; }; interceptor?: DiffInterceptor; pullRequests?: PullRequest[]; ref?: string; }): Promise;