import type { McpListedTool as ListedTool } from "./tool-contracts.ts";
import type { McpCachedServerCatalog } from "./catalog-cache.ts";
import type { McpServerDeclaredConfig, McpSettings } from "./config-schema.ts";
import type { ServerConnection } from "./connection.ts";
import type { McpOutputArtifacts } from "./guard/output-guard.ts";
import type { McpEnsureFreshAuth } from "./health.ts";
import type { McpInvocationResolver } from "./invocation.ts";
import type { McpRequestOriginFor } from "./request-origin.ts";
export interface McpToolCatalogEntry {
    requestOrigin?: McpRequestOriginFor;
    server: string;
    tool: string;
    schema: ListedTool["inputSchema"];
    outputSchema?: ListedTool["outputSchema"];
    modern?: boolean;
    description?: string;
    annotations?: ListedTool["annotations"];
    requestTimeoutMs: number;
    connection: ServerConnection;
    ensureConnected?: () => Promise<void>;
    ensureFresh?: McpEnsureFreshAuth;
    agentDir?: string;
    artifacts?: McpOutputArtifacts;
    outputGuard?: McpSettings["outputGuard"];
    invocation?: McpInvocationResolver;
}
type McpToolCatalogOptions = Pick<McpToolCatalogEntry, "agentDir" | "artifacts" | "ensureFresh" | "outputGuard" | "invocation" | "requestOrigin">;
export declare function collectToolCatalog(server: string, connection: ServerConnection, config: McpServerDeclaredConfig, options?: McpToolCatalogOptions): Promise<McpToolCatalogEntry[]>;
/** What registering these tools with this catalog's resources and prompts exposes;
 * equal identities register identical definitions. */
export declare function mcpRegistrationIdentity(tools: readonly McpToolCatalogEntry[], catalog: McpCachedServerCatalog | undefined): string;
export declare function cachedToolsToCatalogEntries(server: string, catalog: McpCachedServerCatalog, connection: ServerConnection, requestTimeoutMs: number, ensureConnected: () => Promise<void>, options?: McpToolCatalogOptions): McpToolCatalogEntry[];
export {};
//# sourceMappingURL=catalog.d.ts.map