import type { Matcher, Rule } from '../../vendor/tsub/types';
import { DestinationMiddlewareFunction } from '../middleware';
type RoutingRuleMatcher = Matcher & {
    config?: {
        expr: string;
    };
};
export type RoutingRule = Rule & {
    matchers: RoutingRuleMatcher[];
};
export declare const tsubMiddleware: (rules: RoutingRule[]) => DestinationMiddlewareFunction;
export {};
//# sourceMappingURL=index.d.ts.map