import { z } from 'zod'; /** * Rustpad accepts any string as a pad id, but this server restricts ids to a * URL-safe shape: everything else is either a typo or a path-traversal * attempt. The frontend generates ids from the same alphabet. */ export declare const documentIdParam: z.ZodString; /** * Rejects lone surrogates: they cannot be encoded as valid UTF-8, so the Rust * server drops the connection instead of answering — and inside a search * string they would corrupt the code-point arithmetic in ot.ts. */ export declare function wellFormed(schema: T): T; /** * Zod's max() counts UTF-16 units while Rustpad's 256 KiB limit counts code * points; the code-point check in ot.ts is authoritative, this bound just * rejects the absurd early. */ export declare const documentTextParam: z.ZodString; export declare const languageParam: z.ZodString; export declare const confirmTokenParam: z.ZodOptional;