/** Text as the code points the stream reads, lone surrogates kept. Mirrors Python's units. */
export declare function units(value: string): number[];
/** Code points from the stream back as text. Mirrors Python's from_units. */
export declare function fromUnits(value: readonly number[]): string;
/** Validate and normalize one field in the shared document engine. */
export declare function validateDocument(op: string, raw: unknown, where: string, options?: {
    names?: string;
    root?: string;
    reason?: string;
}): unknown;
//# sourceMappingURL=document.d.ts.map