import type { GraphQLSchema } from 'graphql';
import type { GQtyConfig } from '../../config';
export declare class FetchError extends Error {
    readonly request: RequestInit;
    readonly response: Response;
    readonly name = "FetchError";
    constructor(request: RequestInit, response: Response);
}
export type FetchSchemasOptions = {
    headers?: HeadersInit;
    headersByEndpoint?: GQtyConfig['introspections'];
    silent?: boolean;
};
export declare function fetchSchema(endpoint: string, options?: FetchSchemasOptions): Promise<GraphQLSchema>;
export declare function fetchSchema(endpoint: string[], options?: FetchSchemasOptions): Promise<GraphQLSchema>;
export declare const isURL: (input: string) => boolean;
