import type { ParsedParams, ParsedQuery } from '../types/http.types.js'; export declare function query(req: Request, name?: string): string | string[] | ParsedQuery | undefined; export declare function params(req: Request, routeParams?: ParsedParams, name?: string): string | ParsedParams | undefined; export declare function body(req: Request): Promise; /** * Reads merged input from query string and request body. * When a key is provided, returns that value (query takes precedence, then body, then fallback). * When no key is provided, returns the full merged input object. */ export declare function input(req: Request, key?: string, fallback?: unknown): Promise; /** Returns the value of a named request header, or `fallback` if absent. */ export declare function header(req: Request, name: string, fallback?: string): string | undefined; /** * Extracts the Bearer token from the Authorization header. * Returns `null` if the header is absent or uses a different scheme. */ export declare function bearerToken(req: Request): string | null; /** Returns `true` if the client signals it accepts a JSON response (via Accept header). */ export declare function wantsJson(req: Request): boolean; /** Returns `true` if the request body is JSON (via Content-Type header). */ export declare function expectsJson(req: Request): boolean; /** Returns the full URL string of the request. */ export declare function fullUrl(req: Request): string; /** * Returns the full URL with the given query parameters merged in. * Existing params with the same key are overwritten. */ export declare function fullUrlWithQuery(req: Request, patch: Record): string; //# sourceMappingURL=helpers.d.ts.map