import { type FailedBody } from "./errors.js";
/** The bound on a carried sentence, in code points (cut after the pass, so a cut leaves no part of a credential the pass withheld). */
export declare const PROVIDER_MESSAGE_MAX_CHARS = 240;
/** A sentence through the one pass, with `asSent` (spans of it the raw-body reading withholds) taken out too; `undefined` for a
 *  value that is not a string, or says nothing once the pass has folded it. */
export declare function providerMessageOf(sentence: unknown, declared: readonly string[], asSent?: ReadonlyArray<readonly [number, number]>): string | undefined;
/** The sentence a failed response's envelope states, as the engine carries it; `declared` = the request's declared values. */
export declare function readProviderMessage(body: FailedBody | undefined, declared: readonly string[]): string | undefined;
/** A value that crossed a seat the engine did not mint (a host Brain's message or status): the same pass, no declared values,
 *  read as written only (no body comes with it). */
export declare function admittedProviderMessage(value: unknown): string | undefined;
