import { DocumentNode, GraphQLError } from "graphql";
export declare function validateSubgraph(subgraph: {
    name: string;
    url?: string;
    typeDefs: DocumentNode;
}): GraphQLError[];
export declare function validate(subgraphs: ReadonlyArray<{
    name: string;
    url?: string;
    typeDefs: DocumentNode;
}>, __internal?: {
    disableValidationRules?: string[];
}): {
    readonly success: false;
    readonly errors: GraphQLError[];
    readonly supergraph?: undefined;
    links?: undefined;
    readonly specs?: undefined;
    readonly federationVersion?: undefined;
    readonly supergraphStateBuilder?: undefined;
    readonly subgraphStates?: undefined;
} | {
    success: true;
    supergraph: (import("graphql").DirectiveDefinitionNode | import("graphql").TypeDefinitionNode)[];
    links: readonly {
        name: string | null;
        version: string | null;
        identity: string;
        imports: ({
            readonly kind: "type" | "directive";
            readonly name: string;
            readonly alias?: undefined;
        } | {
            readonly kind: "type" | "directive";
            readonly name: string;
            readonly alias: string;
        })[];
    }[];
    specs: {
        tag: boolean;
        context: boolean;
        cost: {
            used: boolean;
            names: {
                cost: string | null;
                listSize: string | null;
            };
        };
        inaccessible: boolean;
        authenticated: boolean;
        requiresScopes: boolean;
        policy: boolean;
    };
    federationVersion: "v1.0" | "v2.0" | "v2.1" | "v2.2" | "v2.3" | "v2.4" | "v2.5" | "v2.6" | "v2.7" | "v2.8" | "v2.9";
    errors?: undefined;
};
export declare function validateAndKeepState(subgraphs: ReadonlyArray<{
    name: string;
    url?: string;
    typeDefs: DocumentNode;
}>, __internal?: {
    disableValidationRules?: string[];
}): {
    readonly success: false;
    readonly errors: GraphQLError[];
    readonly supergraph?: undefined;
    links?: undefined;
    readonly specs?: undefined;
    readonly federationVersion?: undefined;
    readonly supergraphStateBuilder?: undefined;
    readonly subgraphStates?: undefined;
} | {
    readonly success: true;
    readonly supergraph: (import("graphql").DirectiveDefinitionNode | import("graphql").TypeDefinitionNode)[];
    readonly links: readonly {
        name: string | null;
        version: string | null;
        identity: string;
        imports: ({
            readonly kind: "type" | "directive";
            readonly name: string;
            readonly alias?: undefined;
        } | {
            readonly kind: "type" | "directive";
            readonly name: string;
            readonly alias: string;
        })[];
    }[];
    readonly specs: {
        tag: boolean;
        context: boolean;
        cost: {
            used: boolean;
            names: {
                cost: string | null;
                listSize: string | null;
            };
        };
        inaccessible: boolean;
        authenticated: boolean;
        requiresScopes: boolean;
        policy: boolean;
    };
    readonly federationVersion: "v1.0" | "v2.0" | "v2.1" | "v2.2" | "v2.3" | "v2.4" | "v2.5" | "v2.6" | "v2.7" | "v2.8" | "v2.9";
    readonly supergraphStateBuilder: {
        addSubgraph(subgraph: import("./subgraph/state.js").SubgraphState): void;
        getGraph(id: string): import("./subgraph/state.js").SubgraphState | undefined;
        composeSupergraphState(): void;
        visitSubgraphState(subgraphState: import("./subgraph/state.js").SubgraphState): void;
        getSupergraphState(): import("./supergraph/state.js").SupergraphState;
        getSubgraphState(graphId: string): import("./subgraph/state.js").SubgraphState | undefined;
        links(): readonly {
            name: string | null;
            version: string | null;
            identity: string;
            imports: ({
                readonly kind: "type" | "directive";
                readonly name: string;
                readonly alias?: undefined;
            } | {
                readonly kind: "type" | "directive";
                readonly name: string;
                readonly alias: string;
            })[];
        }[];
        build(): (import("graphql").DirectiveDefinitionNode | import("graphql").TypeDefinitionNode)[];
    };
    readonly subgraphStates: Map<string, import("./subgraph/state.js").SubgraphState>;
    errors?: undefined;
};
//# sourceMappingURL=validate.d.ts.map