import type { Settings } from "../config/settings.js"; import type { InternalResource, InternalUrl, InternalWriteResult, ProtocolHandler, SchemeHost, SchemeSpec, WriteContext } from "./types.js"; /** * Whether `out://` replies are on: an explicitly configured `out.enabled` wins; unset, they follow * `tuiTranscript` — on in the interactive TUI (terminal or Tern), off in print, RPC, ACP, and subagent * sessions, where no transcript draws them. Gates both the system-prompt entry and the writes. */ export declare function outRepliesActive(settings: Settings, tuiTranscript: boolean): boolean; export declare class OutProtocolHandler implements ProtocolHandler { readonly scheme = "out"; readonly spec: SchemeSpec; /** Advertised only where replies reach the user; see {@link SchemeHost.outReplies}. */ promptDoc(host: SchemeHost): string | undefined; resolve(): Promise; /** * Accept a reply; its transport draws it (see the module doc). * @throws ToolError when replies are off for the caller ({@link outRepliesActive}) or it is a subagent, or the * content is blank or over 64 KiB. */ write(_url: InternalUrl, content: string, context?: WriteContext): Promise; }