import {NormalizedEnvironment, SchemaPointer, Endpoint} from './config'; import * as probot from 'probot'; import {Source} from 'graphql'; declare type FileLoaderConfig = { context: probot.Context; owner: string; repo: string; }; interface FileLoaderInput { path: string; ref: string; alias: string; throwNotFound?: boolean; onError?: (error: any) => void; } export declare type FileLoader = ( input: FileLoaderInput, ) => Promise; export declare type ConfigLoader = () => Promise; export declare function createFileLoader(config: FileLoaderConfig): FileLoader; export declare function createConfigLoader( config: FileLoaderConfig & { ref: string; }, loadFile: FileLoader, ): ConfigLoader; export declare function printSchemaFromEndpoint( endpoint: Endpoint, ): Promise; export declare function loadSources({ config, oldPointer, newPointer, loadFile, }: { config: NormalizedEnvironment; oldPointer: SchemaPointer; newPointer: SchemaPointer; loadFile: FileLoader; }): Promise<{ old: Source; new: Source; }>; export {};