import type { EventBridge } from '../core/EventBridge/types/EventBridge.js'; import { EBMessageType } from '../core/types/EBMessageType.enum.js'; import type { ServiceBuilderTypes } from '../core/types/ServiceBuilderTypes.js'; import type { InstanceConfigType, ServiceBuilder } from '../ServiceBuilder/ServiceBuilder.impl.js'; import type { StreamDefinitionBuilder } from '../StreamDefinitionBuilder/StreamDefinitionBuilder.impl.js'; import type { Infer, InferIn } from '../schema/index.js'; /** * Infer the instance config type from a service builder. * * @group Unit test helper */ export type InferStreamHarnessServiceBuilderConfig = T extends ServiceBuilder ? S : never; /** * Infer the definition config type from a stream builder. * * @group Unit test helper */ export type InferStreamBuilderConfig = T extends StreamDefinitionBuilder ? C : never; /** * Boot a real service instance and execute one stream through the PURISTA runtime. * * Use this helper when you want to assert emitted stream frames, final payloads, * and guard behavior. * * @group Unit test helper */ export declare const createStreamTestHarness: , TStreamBuilder extends StreamDefinitionBuilder>(serviceBuilder: TServiceBuilder, streamBuilder: TStreamBuilder, options?: InstanceConfigType> & { eventBridge?: EventBridge; }) => Promise<{ service: import("../index.js").Service>; eventBridge: EventBridge; stubs: { eventBridge: Record> | undefined; }; run: (input: { payload: InferIn['PayloadSchema']>; parameter: InferIn['ParamsSchema']>; }) => Promise<{ frames: { id: import("../index.js").EBMessageId; timestamp: number; contentType: import("../index.js").ContentType; contentEncoding: string; traceId?: import("../index.js").TraceId; principalId?: import("../index.js").PrincipalId; tenantId?: import("../index.js").TenantId; eventName?: string; otp?: string; sender: import("../index.js").EBMessageSenderAddress; messageType: EBMessageType.Stream; correlationId: import("../index.js").CorrelationId; receiver: import("../index.js").EBMessageSenderAddress; payload: import("../index.js").StreamFramePayload["ChunkSchema"]>, Infer["FinalSchema"]>>; }[]; chunks: Infer["ChunkSchema"]>[]; final: Infer['FinalSchema']> | undefined; }>; destroy: () => Promise; }>; //# sourceMappingURL=createStreamTestHarness.d.ts.map