import type { CallContext, CallSetup, ToolResult } from "./host.js"; import { type Fit } from "./plan.js"; /** The question the eyes answer when the agent asked none: say what is shown, completely and only that. */ export declare const DESCRIBE_ASK: string; /** What a door says about the media in its result: the file, the agent's question and window or page, and what it * learned (its hash, its pixels, how it was fitted). `units` gives each image block, in order, the unit it belongs to: * the tiles of one image, the pages of one read, the frames of one video. A block with no unit is a unit of its own. */ export type MediaDetails = { readonly kind?: string; readonly path?: string; readonly ask?: string; readonly fromS?: number; readonly toS?: number; readonly page?: number; readonly units?: readonly number[]; readonly sha256?: string; readonly original?: string; readonly fit?: Fit; /** The files a door kept of what it shows (a rendered page), for the receipt. */ readonly derived?: readonly string[]; }; /** The pixels an image's header states, without decoding it (`imageHeader`, kinds.ts). */ export type ImageSize = (bytes: Uint8Array) => { readonly width: number; readonly height: number; } | null; /** One tool result's blocks fitted and routed for the call's lead. Text blocks and a result with no image pass as they * are. A sink or a hook that throws never fails the result; the call's cancellation does. */ export declare function guardResult(result: ToolResult, call: CallContext, setup: CallSetup, sizeOf?: ImageSize): Promise;