import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@pk-nerdsaver-ai/pi-agent-core";
import type { ToolExample } from "@pk-nerdsaver-ai/pi-ai";
import type { Component } from "@pk-nerdsaver-ai/pi-tui";
import type { SSHHost } from "../capability/ssh";
import type { RenderResultOptions } from "../extensibility/custom-tools/types";
import type { Theme } from "../modes/theme/theme";
import type { ToolSession } from ".";
import { type OutputMeta } from "./output-meta";
declare const sshSchema: import("arktype/internal/variants/object.ts").ObjectType<{
    host: string;
    command: string;
    cwd?: string | undefined;
    timeout?: number | undefined;
}, {}>;
export interface SSHToolDetails {
    meta?: OutputMeta;
}
type SshToolParams = typeof sshSchema.infer;
export declare class SshTool implements AgentTool<typeof sshSchema, SSHToolDetails> {
    #private;
    private readonly session;
    private readonly hostNames;
    private readonly hostsByName;
    readonly description: string;
    readonly name = "ssh";
    readonly approval: "exec";
    readonly formatApprovalDetails: (args: unknown) => string[];
    readonly summary = "Execute a command on a remote host over SSH";
    readonly loadMode = "discoverable";
    readonly label = "SSH";
    readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
        host: string;
        command: string;
        cwd?: string | undefined;
        timeout?: number | undefined;
    }, {}>;
    readonly concurrency = "exclusive";
    readonly strict = true;
    readonly examples: readonly ToolExample<SshToolParams>[];
    constructor(session: ToolSession, hostNames: string[], hostsByName: Map<string, SSHHost>, description: string);
    execute(_toolCallId: string, { host, command, cwd, timeout: rawTimeout }: SshToolParams, signal?: AbortSignal, onUpdate?: AgentToolUpdateCallback<SSHToolDetails>, _ctx?: AgentToolContext): Promise<AgentToolResult<SSHToolDetails>>;
}
export declare function loadSshTool(session: ToolSession): Promise<SshTool | null>;
interface SshRenderArgs {
    host?: string;
    command?: string;
    timeout?: number;
}
interface SshRenderContext {
    /** Visual lines for truncated output (pre-computed by tool-execution) */
    visualLines?: string[];
    /** Number of lines skipped */
    skippedCount?: number;
    /** Total visual lines */
    totalVisualLines?: number;
}
export declare const sshToolRenderer: {
    renderCall(args: SshRenderArgs, _options: RenderResultOptions, uiTheme: Theme): Component;
    renderResult(result: {
        content: Array<{
            type: string;
            text?: string;
        }>;
        details?: SSHToolDetails;
    }, options: RenderResultOptions & {
        renderContext?: SshRenderContext;
    }, uiTheme: Theme, args?: SshRenderArgs): Component;
    mergeCallAndResult: boolean;
    provisionalPendingPreview: string;
};
export {};
