export declare const enum TaskQueuePriority { microTask = 0, render = 1, macroTask = 2, postRender = 3, idle = 4 } export declare type QueueTaskOptions = { /** * The number of milliseconds to wait before queueing the task. * * NOTE: just like `setTimeout`, there is no guarantee that the task will actually run * after the specified delay. It is merely a *minimum* delay. * * Defaults to `0` */ delay?: number; /** * If `true`, the task will be run synchronously if it is the same priority as the * `TaskQueue` that is currently flushing. Otherwise, it will be run on the next tick. * * Defaults to `false` */ preempt?: boolean; /** * If `true`, the task will be added back onto the queue after it finished running, indefinitely, until manually canceled. * * Defaults to `false` */ persistent?: boolean; /** * If `true`, the task will be kept in-memory after finishing, so that it can be reused for future tasks for efficiency. * * Defaults to `true` */ reusable?: boolean; }; export declare type QueueTaskTargetOptions = QueueTaskOptions & { priority?: TaskQueuePriority; }; export declare const defaultQueueTaskOptions: Required; export declare type PResolve = (value?: T | PromiseLike) => void; export declare type PReject = (reason?: T) => void; export declare type ExposedPromise = Promise & { resolve: PResolve; reject: PReject; }; export declare function createExposedPromise(): ExposedPromise; //# sourceMappingURL=types.d.ts.map