export type ApiRequest = Pick<Request, 'method' | 'json' | 'headers' | 'url'>;
export declare function searchParams(req: ApiRequest): URLSearchParams;
export interface ApiResponse<R extends unknown = unknown> extends Response {
    readonly __responseType?: R;
}
export declare const ApiResponse: {
    readonly json: <T>(body: T, init?: ResponseInit) => ApiResponse<T>;
    readonly redirect: (location: string | URL, init?: ResponseInit) => ApiResponse<null>;
};
export type ErrorResponseBody = {
    message: string;
};
//# sourceMappingURL=request-response.d.ts.map