import type { Annotation, CreateAnnotationInput } from './types.js'; /** * Runtime validation for the trust boundary between a browser, a store, and * an agent. TypeScript types disappear over HTTP and localStorage, so every * value crossing that boundary must be checked before the UI renders it. */ export declare class PatchMarkValidationError extends Error { constructor(message: string); } export declare const annotationLimits: { readonly id: 128; readonly pagePath: 2048; readonly pageTitle: 512; readonly message: 4000; readonly tagName: 64; readonly name: 512; readonly selector: 4096; readonly text: 1000; readonly quote: 1000; readonly component: 512; readonly source: 1024; readonly property: 128; readonly propertyValue: 2000; readonly changes: 32; readonly collection: 1000; }; /** Reject unknown fields and return a safe, plain CreateAnnotationInput. */ export declare function parseCreateAnnotation(value: unknown): CreateAnnotationInput; /** Validate values returned by a store before they reach the renderer. */ export declare function parseAnnotation(value: unknown): Annotation; export declare function parseAnnotations(value: unknown): Annotation[]; export declare function parseAnnotationResponse(value: unknown): Annotation; export declare function parseAnnotationsResponse(value: unknown): Annotation[]; /** The only built-in lifecycle mutation the browser component performs. */ export declare function parseResolvePatch(value: unknown): { status: 'resolved'; };