export default Job; export type EventNames = 'done' | 'progress'; export type ListenerFn = (job: Job) => void; /** * @typedef EventNames * @type {'done'|'progress'} */ /** * @callback ListenerFn * @param {Job} job * @returns {void} */ declare class Job { /** * * @param {Scene} scene * @param {any} payload */ constructor(scene: Scene, payload: any); /** * @protected * @type {Scene} */ protected scene: Scene; /** * @protected * @type {FlowEngine} */ protected flow: FlowEngine; /** * @protected * @type {any} */ protected payload: any; get type(): string; /** * @protected * @param {number} time * @returns {boolean} */ protected onUpdate(time: number): boolean; /** * @protected */ protected onComplete(): void; /** * @protected */ protected onTerminate(): void; /** @private */ private onFire; /** @private */ private onDestroy; } import Scene from "../Scene"; import FlowEngine from "./FlowEngine";