import { Cancellation } from '../../service/worker/runtime/typings';
import { MiddlewareContext } from '../typings';
export declare const cancellationToken: (cancellation?: Cancellation) => (ctx: MiddlewareContext, next: () => Promise<void>) => Promise<void>;