import PlatformVelociousJob from "./platform-job.js"; /** * Node background-job entry. It preserves lazy configuration discovery for * fresh producer processes while the explicit platform entry stays free of * Node-only configuration resolution. * @template {Array>} [TArgs=[]] * @augments {PlatformVelociousJob} */ export default class VelociousJob> = []> extends PlatformVelociousJob { /** * Runs perform later. * @param {...ReturnType} args - Job args. * @returns {Promise} - Job id. */ static performLater(...args: ReturnType[]): Promise; /** * Runs perform later with options. * @param {object} args - Options. * @param {Array>} args.args - Job args. * @param {import("./types.js").BackgroundJobOptions} [args.options] - Job options. * @returns {Promise} - Job id. */ static performLaterWithOptions({ args, options }: { args: Array>; options?: import("./types.js").BackgroundJobOptions; }): Promise; /** * Atomically replaces this job class's queued owner for a stable schedule key. * @param {object} args - Options. * @param {string} args.scheduleKey - Stable logical schedule key. * @param {Array>} args.args - Job args. * @param {import("./types.js").BackgroundJobOptions} [args.options] - Job options. * @returns {Promise} - Replacement result. */ static replaceScheduled({ scheduleKey, args, options }: { scheduleKey: string; args: Array>; options?: import("./types.js").BackgroundJobOptions; }): Promise; /** * Cancels or detaches the current owner of a stable schedule key. * @param {string} scheduleKey - Stable logical schedule key. * @returns {Promise} - Cancellation result. */ static cancelScheduled(scheduleKey: string): Promise; /** * Reads current ownership and optional terminal history for a stable key. * @param {string} scheduleKey - Stable logical schedule key. * @param {{includeLatestTerminal?: boolean}} [options] - Lookup options. * @returns {Promise} - Normalized stable schedule jobs. */ static getScheduledJob(scheduleKey: string, options?: { includeLatestTerminal?: boolean; }): Promise; /** * Expedites a future queued owner without creating another job. * @param {string} scheduleKey - Stable logical schedule key. * @returns {Promise} - Wake result. */ static wakeScheduled(scheduleKey: string): Promise; } //# sourceMappingURL=job.d.ts.map