import type { ResultEnvelope } from 'peaks-loop-shared/result'; import type { WebOp } from '../../services/web/web-protocol.js'; import { type ProgramIO } from '../cli-helpers.js'; interface WrappedPayload { readonly data: Record; /** Raw human-mode stdout, or `null` for verbs whose output is not page content. */ readonly human: string | null; } /** * Wrap the page-controlled part of each verb's payload (AC4 / ยง6.2) and pick * the bytes that human mode prints verbatim. `shot` is unwrapped: its path and * byte count are ours, not the page's. */ export declare function wrapPageData(op: WebOp, raw: Record): WrappedPayload; /** * Print the envelope. Failures and `--json` go through `printResult`; a * successful wrapped op in human mode prints its payload RAW, because the * UNTRUSTED delimiters must stay on their own lines (AC4) and AC2 measures the * byte count of exactly this stdout. */ export declare function emit(io: ProgramIO, result: ResultEnvelope, asJson: boolean, humanPayload: string | null): void; export {};