import type { EventBridge } from '../core/EventBridge/types/EventBridge.js'; import type { QueueBridge } from '../core/QueueBridge/types/QueueBridge.js'; import type { QueueMessage } from '../core/types/queue/QueueMessage.js'; import type { ServiceBuilderTypes } from '../core/types/ServiceBuilderTypes.js'; import type { QueueWorkerBuilder } from '../QueueWorkerBuilder/QueueWorkerBuilder.impl.js'; import type { InstanceConfigType, ServiceBuilder } from '../ServiceBuilder/ServiceBuilder.impl.js'; /** * Infer the instance config type from a service builder. * * @group Unit test helper */ export type InferQueueWorkerHarnessServiceBuilderConfig = T extends ServiceBuilder ? S : never; /** * Boot a real service instance and execute one queue worker cycle through the * PURISTA worker runtime. * * Use this helper when you want to verify queue worker guards, job controls, * and queue bridge interactions instead of calling the handler directly. * * @group Unit test helper */ export declare const createQueueWorkerTestHarness: >(serviceBuilder: TServiceBuilder, workerBuilder: QueueWorkerBuilder, options?: InstanceConfigType> & { eventBridge?: EventBridge; queueBridge?: QueueBridge; }) => Promise<{ service: import("../index.js").Service>; eventBridge: EventBridge; queueBridge: QueueBridge; stubs: { eventBridge: Record> | undefined; queueBridge: Record> | undefined; }; run: (message: QueueMessage) => Promise<{ ackCalls: import("sinon").SinonSpyCall[]; nackCalls: import("sinon").SinonSpyCall[]; deadLetterCalls: import("sinon").SinonSpyCall[]; extendLeaseCalls: import("sinon").SinonSpyCall[]; }>; destroy: () => Promise; }>; //# sourceMappingURL=createQueueWorkerTestHarness.d.ts.map