import type { Task } from '../task'; import type { RunLoop } from '../run-loop'; import { Operation } from '../operation'; import { Future } from '../future'; export interface Controller { type: string; operation: Operation; resourceTask?: Task; start(): void; halt(): void; future: Future; } export type Options = { runLoop: RunLoop; onYieldingToChange?: (task: Task | undefined) => void; }; export declare function createController(task: Task, operation: Operation, options: Options): Controller; //# sourceMappingURL=controller.d.ts.map