import { JobInput, InternalJob } from "./types"; export { InternalJob }; export type JobResultInterface = Record; /** * Create an internal job object */ export declare function createInternalJob(job: JobInput | InternalJob, plugin: { name: string; version: string; resolve: string; }): InternalJob; /** * Creates a job */ export declare function enqueueJob(job: InternalJob): Promise>; /** * Get in progress job promise */ export declare function getInProcessJobPromise(contentDigest: string): Promise> | undefined; /** * Remove a job from our inProgressQueue to reduce memory usage */ export declare function removeInProgressJob(contentDigest: string): void; /** * Wait for all processing jobs to have finished */ export declare function waitUntilAllJobsComplete(): Promise; /** * Wait for specific jobs for engines */ export declare function waitJobs(jobDigests: Set): Promise; export declare function isJobStale(job: Partial & { inputPaths: InternalJob["inputPaths"]; }): boolean;