import type { FormattedExecutionResult, GraphQLFormattedError } from "graphql";
import type { FetchResult } from "@apollo/client";
export declare namespace CombinedGraphQLErrors {
    interface MessageFormatterOptions {
        result: FetchResult<unknown>;
        defaultFormatMessage: (errors: ReadonlyArray<GraphQLFormattedError>) => string;
    }
    type MessageFormatter = (errors: ReadonlyArray<GraphQLFormattedError>, options: MessageFormatterOptions) => string;
}
/**
 * Represents the combined list of GraphQL errors returned from the server in a
 * GraphQL response.
 */
export declare class CombinedGraphQLErrors extends Error {
    /** Determine if an error is a `CombinedGraphQLErrors` instance */
    static is(error: unknown): error is CombinedGraphQLErrors;
    /**
     * Formats the error message used for the error `message` property. Override
     * to provide your own formatting.
     */
    static formatMessage: CombinedGraphQLErrors.MessageFormatter;
    /**
     * The raw list of GraphQL errors returned in a GraphQL response.
     */
    readonly errors: ReadonlyArray<GraphQLFormattedError>;
    /**
     * Partial data returned in the GraphQL response.
     */
    readonly data: Record<string, unknown> | null | undefined;
    /**
     * Extensions added to the result.
     */
    readonly extensions: Record<string, unknown> | undefined;
    constructor(result: FormattedExecutionResult<any>);
    constructor(result: FetchResult<any>, errors: ReadonlyArray<GraphQLFormattedError>);
}
//# sourceMappingURL=CombinedGraphQLErrors.d.ts.map
