UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

23 lines (22 loc) 1.03 kB
import type { BaseContext, IBaseAtom, BaseOptions } from '../types/atom'; import { AtomName } from '../types/atom'; import type { CombineAll, MapAtomTypes, ScheduleOptions } from '../types/schedule'; export declare class Schedule<T extends AtomName[]> { atomInstaces: IBaseAtom<BaseContext, BaseOptions>[]; atomList: AtomName[]; private context; options: ScheduleOptions; protected query: string; historySteps: any; constructor(atomList: T, options?: ScheduleOptions, context?: CombineAll<MapAtomTypes<T>>); initContext(): void; getAtomOptions(atomName: AtomName): any; atomFactory(atomName: AtomName): any; private parseSubTasks; private addUsage; run(query?: string, shouldRunList?: Record<AtomName, boolean>): Promise<Awaited<CombineAll<MapAtomTypes<T>>>>; setNewTask(context: any): void; updateOptions(options: ScheduleOptions): void; updateContext(context: any, isReplace?: boolean): void; getContext(atomName?: AtomName): CombineAll<MapAtomTypes<T>>; }