import type { ExtensionAPI, ExtensionUIContext } from "../../types.ts";
import type { ToolSearchService } from "../tool-search/service.ts";
import type { ResolvedMcpConfig } from "./config-schema.ts";
import type { McpSessionRegistration } from "./expose/session.ts";
import type { McpConnectionEntry } from "./service-types.ts";
import type { McpRequestOrigin } from "./request-origin.ts";
type McpToolRegistrar = Pick<ExtensionAPI, "getActiveTools" | "setActiveTools" | "registerTool">;
export interface McpServiceDirectToolRegistrationOptions {
    readonly requestOrigin?: (entry: McpConnectionEntry, caller?: {
        readonly sessionManager?: object;
    }) => McpRequestOrigin;
    readonly bindPresentation?: (ui: ExtensionUIContext) => void;
    readonly refreshActiveSetWhenEmpty?: boolean;
    readonly onRegistered?: (entry: McpConnectionEntry, identity: string) => void;
    readonly isCurrent?: (entry: McpConnectionEntry) => boolean;
    readonly contextRequired?: boolean;
    readonly sessionManager?: object;
    readonly servesSession?: (sessionManager: object | undefined) => boolean;
    readonly publishCurrent?: () => Promise<void>;
}
export declare function registerMcpServiceDirectTools(pi: McpToolRegistrar, config: ResolvedMcpConfig, entries: Iterable<McpConnectionEntry>, toolSearchService: ToolSearchService, options?: McpServiceDirectToolRegistrationOptions): Promise<McpSessionRegistration | undefined>;
export {};
//# sourceMappingURL=service-register.d.ts.map