import { type VisionEnv } from "./env.js"; import type { CallContext, CallSetup, ReadArgs, ToolResult } from "./host.js"; import type { ReadKinds } from "./kind-reader.js"; export type { KindContext, KindReader, KindRequest, KindResult, ReadKinds } from "./kind-reader.js"; /** A tool on a strict function-calling route receives every optional argument, filled with its zero value. A value * that is the argument's own default, or a window or page the target has none of, is the absent argument. Two shapes * stay as sent, because a filler and a real request send the same values: `from_s: 5, to_s: 0` (refused, since * `to_s: 0` alone is also the real empty window), and `page: 1` on a document (read, since it is the real first page). */ export declare function withoutStrictDefaults(args: ReadArgs, target: { readonly windowed: boolean; readonly paged: boolean; }): ReadArgs; /** The media half of `read`: the result for a file the model looks at or that needs decoding, or a recording by handle; * null when the path reads as plain text (or is not a file), for the host's own read. */ export declare function readMedia(env: VisionEnv, raw: ReadArgs, call: CallContext, setup: CallSetup, kinds?: ReadKinds): Promise; /** `read`'s answer when the host's own callbacks (its scope, eyes or limits) could not set the call up: null for a path * `readMedia` leaves to the host (a plain text file, or not a file, by its first bytes whatever the arguments); for any * other path a `look_failed` miss that the host's `onMiss` hears of and nothing files. */ export declare function readWithoutSetup(env: VisionEnv, args: ReadArgs, call: CallContext, error: unknown, host: Pick): Promise; /** Whether a call is the host's plain text read: no handle a source serves, no media argument, and a file that is not * one of the kinds read decodes. The host's read of anything else may file a look or write a derivation. */ export declare function readsAsText(env: VisionEnv, args: ReadArgs, call: CallContext, setup: Pick, kinds?: ReadKinds): Promise;