import { ISelectableNode, NodeInstance } from '../graph/nodes'; import { ITaskHandler, ITaskHandlerApi } from './types'; declare type ITaskHandlerWithNoId = Pick>; export declare class TaskHandler implements ITaskHandler { private decoratee; id: string; constructor(decoratee: ITaskHandlerWithNoId, id: string); selector(node: ISelectableNode): boolean; run(node: NodeInstance, api: ITaskHandlerApi): Promise; } export declare const createTaskHandler: (decoratee: Pick, id: string) => TaskHandler; export {};