import type { ErrorLike } from "@apollo/client/core";
import type { FetchResult } from "@apollo/client/link/core";
import type { ServerError } from "./ServerError.js";
import type { ServerParseError } from "./ServerParseError.js";
export declare const PROTOCOL_ERRORS_SYMBOL: unique symbol;
type FetchResultWithSymbolExtensions<T> = FetchResult<T> & {
    extensions: Record<string | symbol, any>;
};
export declare function graphQLResultHasProtocolErrors<T>(result: FetchResult<T>): result is FetchResultWithSymbolExtensions<T>;
export declare function toErrorLike(error: unknown): ErrorLike;
export type NetworkError = Error | ServerParseError | ServerError | null;
export { CombinedGraphQLErrors } from "./CombinedGraphQLErrors.js";
export { CombinedProtocolErrors } from "./CombinedProtocolErrors.js";
export { ServerError } from "./ServerError.js";
export { ServerParseError } from "./ServerParseError.js";
export { UnconventionalError } from "./UnconventionalError.js";
//# sourceMappingURL=index.d.ts.map
