/** * Folds a route path's pre-split segments into its shape: every `{name:type}` * capture collapses to `{}` and every literal segment stays itself, so two * paths share a shape exactly when a request cannot tell them apart by * position. The body uses only indexed access, `.length` and primitive string * concatenation — no method lookups — because the serve runtime embeds this * exact source inside its hardened primordial Realm, where prototypes are * assumed hostile. Callers split on "/" themselves with whatever split they * trust. */ export declare function routeShapeFromSegments(segments: readonly string[]): string; /** * The same definition as JavaScript source, for the serve runtime template. * Deriving it from the compiled function keeps the rule written once: editing * `routeShapeFromSegments` edits both referees. */ export declare const ROUTE_SHAPE_FROM_SEGMENTS_SOURCE: string; /** The shape of a full route path, for callers outside the hardened Realm. */ export declare function routeShape(path: string): string; //# sourceMappingURL=route-shape.d.ts.map