/** * @typedef {object} WorkerContext * @property {any} [configuration] - Reconstructed Velocious configuration. * @property {(args: {mountIdentifier: string, runId: string}) => Promise} [execute] - Test-only bootstrap execution hook. */ /** * Parses the package-owned worker's bounded invocation contract. * * @param {string[]} argv - Worker arguments. * @returns {{bootstrapPath: string, mountIdentifier: string, runId: string}} Invocation. */ export function parseWorkerArguments(argv: string[]): { bootstrapPath: string; mountIdentifier: string; runId: string; }; /** * Executes one admitted deployment in a fresh application process. * * @param {{bootstrapPath: string, mountIdentifier: string, runId: string}} args - Worker invocation. * @returns {Promise} */ export function runDetachedDeploymentWorker({ bootstrapPath, mountIdentifier, runId }: { bootstrapPath: string; mountIdentifier: string; runId: string; }): Promise; /** * @param {any} configuration - Configuration. * @param {string} context - Error context. * @param {unknown} error - Error. * @returns {void} */ export function reportWorkerFrameworkError(configuration: any, context: string, error: unknown): void; export type WorkerContext = { /** * - Reconstructed Velocious configuration. */ configuration?: any; /** * - Test-only bootstrap execution hook. */ execute?: ((args: { mountIdentifier: string; runId: string; }) => Promise) | undefined; }; //# sourceMappingURL=worker.d.ts.map