/** The identity fields of an endpoint, as much of one as this check needs to see. */ interface EndpointIdentity { readonly name: string; readonly path: string; } /** * Assert one endpoint's identity is bounded, printable, single-line text. * * This lives in its own module because BOTH endpoint sources have to run it, and each has a * duplicate check of its own that would otherwise quote an unbounded value first: the folder * loader rejects two files sharing a name, and the merge step rejects a name or path shared * across sources. An identity that is too large to print is not a duplicate problem, so it has * to be settled where the endpoint is BUILT -- ahead of every duplicate check -- or the * earliest-firing diagnostic wins and emits the megabyte the bound exists to prevent. * (`config.ts` cannot own it: `endpoints-dir.ts` is its dependency, not the other way round.) * * The path is checked before the name so the name's diagnostic can identify its endpoint by an * already-validated path; neither diagnostic quotes the value it rejected, because quoting an * unbounded value back is the defect being fixed. */ export declare function assertEndpointIdentity(endpoint: EndpointIdentity, source: string): void; export {}; //# sourceMappingURL=endpoint-identity.d.ts.map