export declare function parseRequestUrl(url: URL, basePath: string, rscBase: string): { type: "http"; pathname: string; serverFunctionId?: never; rscPath?: never; } | { type: "call"; pathname: string; serverFunctionId: string; rscPath?: never; } | { type: "rsc"; pathname: string; rscPath: string; serverFunctionId?: never; }; type RequestInfo = { type: 'http'; pathname: string; searchParams: URLSearchParams; } | { type: 'rsc'; rscPath: string; rscParams: URLSearchParams | undefined; } | { type: 'call'; }; /** * Inspects a request URL using Waku's configured base path and RSC endpoint. * Returns HTTP path/query, RSC input, or a server-call classification, and * `null` for URLs outside the base path or with an invalid payload path. * Does not consume the body: body-backed RSC params are `undefined`, and * form actions addressed to document URLs are classified as HTTP. * This classification does not validate server function calls or authorize * requests. */ export declare function parseRequest(req: Request): RequestInfo | null; export {};