/** * One file argument, resolved against the script's own cwd and read as bytes. * * The diagnostics are POSIX-shaped because bash PRINTS them: a parser that * invented its own sentence would be the one command in the shell that does not * sound like the shell. */ import type { ExecResult, ResolvedCommandContext } from "just-bash"; export type Input = { bytes: Uint8Array; } | { refusal: ExecResult; }; export declare function inputBytes(name: string, args: string[], ctx: ResolvedCommandContext): Promise; /** What a parser says when the bytes are not the format it was handed. The message names the format rather than echoing a library's internal error, because the agent's next move is to tell the user what the file actually is. */ export declare const notThisFormat: (name: string, target: string, format: string, cause: unknown) => ExecResult; //# sourceMappingURL=input.d.ts.map