import type { PlatformAdapter } from '../../../platform/index.js'; import type { CommandResult } from './command-context.js'; import type { CommandActionRouter } from '../../interactions/command-action-router.js'; export declare function createCancelHandler(cancelDispatchedTask: ((opts: { taskId: string; channel: string; }) => Promise<{ ok: boolean; message: string; }>) | null, router?: CommandActionRouter): (channel: string, adapter: PlatformAdapter, trimmedMessage: string) => Promise;