import { type StringOrMarkdown, type ToolCallState, type ToolDefinition } from "../state/protocol/state.js"; import type { IAgentMetadataSource } from "./metadata.js"; import { type ToolKind } from "./vscode/agentToolCallMeta.js"; export { copilotCliToolInputContract, isPresentationOnlyToolCall, toToolCallMeta } from "./vscode/agentToolCallMeta.js"; export type { AgentFusionPhaseStatus, IFusionPhaseMeta, IToolCallMeta, IToolCallUiMeta, IToolSearchCandidate, ToolKind } from "./vscode/agentToolCallMeta.js"; export interface IAgentToolOutputChunk { readonly output: string; readonly isPty: boolean; } export interface IAgentClientToolPreferences { readonly defer?: "auto" | "never"; readonly availability?: "session" | "userChats"; } export declare function readToolCallMeta(source: IAgentMetadataSource): import("./vscode/agentToolCallMeta.js").IToolCallMeta; /** Returns an elapsed duration only when both provider timestamps are valid and ordered. */ export declare function getToolCallDurationMs(startedAt: string | undefined, completedAt: string | undefined): number | undefined; export interface IToolCallPresentation { readonly toolKind?: ToolKind; readonly invocationMessage?: StringOrMarkdown; readonly pastTenseMessage?: StringOrMarkdown; readonly confirmationTitle?: StringOrMarkdown; } export declare function readToolCallPresentation(call: ToolCallState): IToolCallPresentation; export declare function readAgentToolOutputDelta(action: IAgentMetadataSource, initial: Pick, current: Pick): IAgentToolOutputChunk | undefined; export declare function withAgentToolPreferences(tool: T, preferences: IAgentClientToolPreferences | undefined): T;