import { FetchEvent } from "../../../fetch";
import { URLPatternInit } from "../../../worker/service-worker/router";
export type RouterRequestMethodLower = "get" | "put" | "post" | "delete" | "options" | "patch" | "head";
export interface OnRequestFn {
    (request: Request, event: FetchEvent): Response | undefined | void | Promise<Response | undefined | void>;
}
export interface AddRouteAndHandlerFn {
    (pathnameOrInit: string | URLPatternInit, onRequest: OnRequestFn): void;
}
export declare const requestMethod: Record<RouterRequestMethodLower, AddRouteAndHandlerFn>;
