import { type ResultValue } from "../runtime/result.js"; import type { Host } from "../host/host.js"; import type { BoundingBox } from "./ocr.js"; /** The TypeScript half of `cropImage`, `imageSize`, and `pasteImages` in * `std::image`. The pixel work runs in `lib/cli/imageTools.py` through * the Python `agency local serve` uses, once per call, since Pillow is * already there and the core package has no image library. Each call is * one process that prints one JSON line. */ /** The script shipped next to the server scripts, copied into dist like * them. */ export declare function imageToolsScript(host: Host): string; type ToolResult = Record; /** Runs one command and returns its JSON line, or the reason it failed. * Nothing here reads or writes a file: the script does, on paths this * module has already checked. */ export declare function _runImageTool(host: Host, args: string[]): Promise; /** Backs `cropImage`: `spelling` and `outSpelling` are the real paths the * effect named. */ export declare function _cropImage(spelling: string, box: BoundingBox, outSpelling: string, pad: number, square: boolean): Promise; /** Backs `imageSize`. */ export declare function _imageSize(spelling: string): Promise; /** Backs `pasteImages`: every input is a real path the effect listed. */ export declare function _pasteImages(spellings: string[], outSpelling: string, columns: number): Promise; export {};