import type { Cleanup, Ctx, MilkdownPlugin, SliceType, TimerType } from '@milkdown/ctx'; export declare const nanoid: (size?: number | undefined) => string; export type WithTimer = T & { timer: TimerType; }; export declare function addTimer>(runner: (ctx: Ctx, plugin: PluginWithTimer, done: () => void) => Promise, injectTo: SliceType, timerName?: string): PluginWithTimer; //# sourceMappingURL=utils.d.ts.map