import type { ToolArguments } from '../tool';
import type { McpSdkClient } from './sdk-client';
export type McpServerRuntimeParams = {
    serverId: string;
    toolsetName: string;
    client: McpSdkClient;
};
export declare class McpServerRuntime {
    readonly serverId: string;
    readonly toolsetName: string;
    private readonly client;
    private inFlightCount;
    private stopRequested;
    private closed;
    private forceKillTimer;
    constructor(params: McpServerRuntimeParams);
    callTool(mcpToolName: string, args: ToolArguments): Promise<string>;
    callToolRaw(mcpToolName: string, args: ToolArguments): Promise<unknown>;
    requestStop(params?: {
        forceKillAfterMs?: number;
    }): void;
    private closeNow;
}
