/** * Which ids a custom `serverFns.generateFunctionId` may return. The client * puts the id after `TSS_SERVER_FN_BASE` unencoded and the server reads that * path segment back, so an id has to survive that trip whole. */ interface CustomIdSubject { /** The server function's variable name. */ name: string; /** The `functionName` the generator received. */ functionName: string; /** The defining file, relative to the root. */ rootRel: string; } /** * `error`: the id never reached its handler: a character that splits or * ends the path or that a client percent-encodes, a dot segment, which URL * parsing removes, or a percent-encoding the server decodes to another id * or rejects (`readBack`). `deprecated`: an ASCII character outside RFC * 3986's unreserved set and `$`, which reaches the server but which proxies * and servers may encode or normalise. */ export declare function customIdCheck(id: string): 'ok' | 'deprecated' | 'error'; /** The build error of a custom id `customIdCheck` refuses. */ export declare function customIdError(fn: CustomIdSubject, id: string): string; /** The build warning of a custom id `customIdCheck` deprecates. */ export declare function customIdWarning(fn: CustomIdSubject, id: string): string; export {};