/** * Private route namespace for hosting eve as a separate experimental Vercel * service behind the SvelteKit app. */ export declare const EVE_SVELTEKIT_SERVICE_PREFIX = "/_eve_internal/eve"; /** * Normalize a user-supplied service prefix into a leading-slash, no-trailing- * slash route. Throws when the prefix resolves to the root route, which would * collide with the SvelteKit web service. */ export declare function normalizeRoutePrefix(prefix: string): string; /** * Join a route prefix and a path with exactly one separating slash. */ export declare function joinRoutePrefix(prefix: string, path: string): string; /** * Reduce an origin string to its canonical `protocol://host[:port]` form. */ export declare function normalizeOrigin(origin: string): string; /** * A Vercel rewrite that forwards eve transport requests (`/eve/v1/**`) to the * private eve service prefix (`/_eve_internal/eve/eve/v1/**`). */ export interface EveVercelRewrite { readonly destination: string; readonly source: string; } /** * Build the Vercel rewrite that forwards browser eve transport requests to the * sibling eve service. */ export declare function createEveVercelRewrite(servicePrefix: string): EveVercelRewrite;