export type OrderedDispatchRule<TContext, TResult> = {
    id: string;
    match: (ctx: TContext) => boolean;
    run: (ctx: TContext) => Promise<TResult>;
};
export declare function dispatchOrderedRules<TContext, TResult>(rules: readonly OrderedDispatchRule<TContext, TResult>[], ctx: TContext, noMatchErrorMessage: string): Promise<TResult>;
