import { Job } from '../../job'; import { JobSerial } from '../../shared/types/server'; export type jobStatus = "CREATED" | "SUBMITTED" | "COMPLETED" | "START" | "FINISHED"; export declare function isJobStatus(type: string): type is jobStatus; type jobShimmering = "source" | "bound"; type shimOrStatus = jobShimmering | jobStatus; export declare function isShimOrStatus(type: jobShimmering | jobStatus): type is shimOrStatus; export type ISearchKey = { jid: string; } | { jobSerial: JobSerial; } | { jobObject: Job; }; export declare function size(opt?: string): number; export declare function removeJob(query: ISearchKey): boolean; export declare function addJob(newJob: Job): void; export declare function setCycle(query: ISearchKey, n: number | string): boolean; export declare function getCycle(query: ISearchKey): number | undefined; export declare function getJob(query: ISearchKey): Job | undefined; export declare function getJobStatus(query: ISearchKey): jobStatus | undefined; export declare function startedJobiterator(): Generator; export declare function asString(): string; export declare function jobSet(status: any, query: ISearchKey): boolean; export declare function lookup(jobAsked: Job): Job[] | undefined; export {};