import { type Middleware } from 'koa';
type HttpMethod = 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put';
type Route = {
    [method in HttpMethod]?: Middleware;
} & {
    route: RegExp | string;
    any?: Middleware;
};
/**
 * A tiny dynamic router middleware for GET requests.
 *
 * @param routes The routes to serve.
 * @returns Middleware that serves middleware matching the route regex.
 */
export declare function tinyRouter(routes: Route[]): Middleware;
export {};
