import type { Committed, EventMeta, Message, Store } from "@rotorsoft/act/types"; import type { CounterEvents } from "./events.js"; export type CounterMessage = Message; export type CommittedCounterEvent = Committed; /** * Per-test unique identifier suffix. Use to namespace streams so tests * running in parallel against the same shared store (e.g., a real Postgres * instance) don't collide on stream names. */ export declare const uid: () => string; export declare const actor: (name?: string) => { id: `${string}-${string}-${string}-${string}-${string}`; name: string; }; /** Build an EventMeta with a correlation id and optional action causation. */ export declare const make_meta: (opts?: { correlation?: string; stream?: string; action?: string; }) => EventMeta; export declare const inc: (amount?: number) => CounterMessage; export declare const dec: (amount?: number) => CounterMessage; export declare const reset: () => CounterMessage; /** * Commit `count` Incremented events to `stream` on the given store, each * within its own commit transaction (so they receive distinct event ids). */ export declare const seed_stream: (store: Store, stream: string, count: number, correlation?: string) => Promise; /** * Drain a `query` call into an array. Convenience wrapper for assertions. */ export declare const collect: (store: Store, query: Parameters[1]) => Promise; //# sourceMappingURL=helpers.d.ts.map