/** Maximum characters retained from one diagnostic field. */ export declare const ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS = 2048; /** Maximum characters retained from a stack snapshot. */ export declare const ERROR_STACK_MAX_LENGTH_CHARS = 8192; /** Maximum characters retained from serialized structured error context. */ export declare const ERROR_CONTEXT_MAX_LENGTH_CHARS = 4096; /** Maximum characters emitted by one rendered error payload or terminal block. */ export declare const ERROR_OUTPUT_MAX_LENGTH_CHARS: number; /** Maximum source characters accepted for the error-docs path segment. */ export declare const ERROR_DOCS_SLUG_MAX_LENGTH_CHARS = 256; /** * Base for every error documentation link printed at a boundary. * * Slugs are anchors on one generated reference page, not separate pages: a * registry entry carries only a title and a one-line suggestion, which is too * little for a page of its own. docs/guides/errors.md is generated from the * registry by scripts/docs/generate-error-reference.ts, and * tests/docs/error-docs-links.test.ts asserts every slug has an anchor there. */ export declare const ERROR_DOCS_BASE_URL = "https://veryfront.com/docs/code/guides/errors#"; /** * Redact a complete diagnostic before truncating it. * * The order is security-sensitive: truncating first could split a credential * assignment before the redactor sees its complete value and expose a prefix. */ export declare function sanitizeBoundedDiagnosticText(value: unknown): string; /** Redact and bound a stack while retaining its line structure. */ export declare function sanitizeBoundedStackText(value: unknown): string; /** Redact, neutralize terminal controls, and bound one terminal field. */ export declare function sanitizeBoundedTerminalText(value: unknown): string; /** * Bound a complete rendered terminal block. * * Normal-sized output retains framework styling. Oversized output is flattened * through the terminal sanitizer before truncation so a cut cannot leave an * incomplete ANSI sequence active in the caller's terminal. */ export declare function limitRenderedErrorOutput(value: string): string; /** Redact and bound an error identity consistently across every boundary. */ export declare function sanitizeBoundedErrorSlug(slug: unknown): string; /** Build a single, encoded, credential-scrubbed error documentation path. */ export declare function buildErrorDocsUrl(slug: unknown): string; //# sourceMappingURL=diagnostic-policy.d.ts.map