/**
 * KimiApiRuntime — Moonshot API runtime adapter.
 * Previously misnamed as KimiWireRuntime; this is an HTTP API adapter, not wire protocol.
 *
 * Calls https://api.moonshot.cn/v1/chat/completions directly.
 */
import type { AgentRuntime, AgentRunResult, AgentResult, AgentTask, RuntimeCapabilities, RuntimeHealth } from "./agent-runtime.js";
import type { ContextCapsule } from "./context-capsule.js";
export interface KimiApiRuntimeOptions {
    id?: string;
    priority?: number;
    apiKey?: string;
    model?: string;
    baseUrl?: string;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    cwd?: string;
    /** @deprecated Wire-client option, used only to read KIMI_API_KEY */
    env?: NodeJS.ProcessEnv;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    agentFile?: string;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    configFile?: string;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    mcpConfigFile?: string;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    timeoutMs?: number;
    /** @deprecated Wire-client option, ignored by HTTP adapter */
    enabled?: boolean;
}
/** @deprecated Use KimiApiRuntimeOptions instead */
export type KimiWireRuntimeOptions = KimiApiRuntimeOptions;
export declare function createKimiApiRuntime(options?: KimiApiRuntimeOptions): AgentRuntime;
/** @deprecated Use createKimiApiRuntime instead */
export declare const createKimiWireRuntime: typeof createKimiApiRuntime;
export declare class KimiApiRuntime implements AgentRuntime {
    readonly id: string;
    readonly providerId = "kimi";
    readonly legacy = false;
    readonly runtimeMode = "api";
    readonly kind = "api";
    readonly priority: number;
    readonly capabilities: RuntimeCapabilities;
    private readonly apiKey;
    private readonly model;
    private readonly baseUrl;
    constructor(options?: KimiApiRuntimeOptions);
    supports(capsule: ContextCapsule): boolean;
    health(): Promise<RuntimeHealth>;
    runNode(capsule: ContextCapsule, signal: AbortSignal): Promise<AgentRunResult>;
    execute(task: AgentTask): Promise<AgentResult>;
    private parseStreamResponse;
}
