/** * Canonical HTTP-method resolution shared by in-process API execution, * isolated workers, method-not-allowed responses, and capability discovery. */ /** Standard methods advertised for a callable default route export. */ export declare const STANDARD_ROUTE_METHODS: readonly ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]; /** Snapshot one request method as a bounded, canonical HTTP token. */ export declare function normalizeRouteMethod(method: unknown): string | null; /** * Resolve the function an API request executes. * * Compatibility order is intentional: an exact method export wins, then the * default export, then GET supplies the conventional HEAD fallback. */ export declare function resolveRouteHandlerExport(routeModule: Record, method: unknown): ((...args: unknown[]) => unknown) | undefined; /** * Return the method surface the canonical resolver can execute. * * OPTIONS is always framework-reachable for a matched route. A default export * supports the standard surface plus the one bounded custom method currently * being probed (for example, a CORS PROPFIND preflight). */ export declare function resolveExecutableRouteMethods(routeModule: Record, requestedMethod?: unknown, options?: { includeFrameworkOptions?: boolean; }): string[]; //# sourceMappingURL=route-methods.d.ts.map