import type { Constructor } from '@cratis/fundamentals'; import { AppendedEvent, ObservationOrigin, ReduceOperationMessage, type RegisterReducer, type ReducerResult } from '@cratis/chronicle.contracts'; /** Creates a delivered event of a type for an event source. */ export declare function appended(eventTypeId: string, eventSourceId: string, sequenceNumber: bigint, content?: object): AppendedEvent; /** The events and stored state of one event source in a page. */ export interface ReducerPartitionInput { readonly initialState?: object; readonly events: AppendedEvent[]; } /** Creates a page of event sources, as a kernel that delivers pages sends it. */ export declare function page(deliveryId: bigint, partitions: Record, origin?: ObservationOrigin): ReduceOperationMessage; /** Creates a legacy single-partition operation, as a kernel that does not deliver pages sends it. */ export declare function single(partition: string, events: AppendedEvent[], initialState?: object): ReduceOperationMessage; /** Observes a reducer through the production observation stream, without a kernel. */ export declare function observeReducerMessages(reducerType: Constructor, eventTypes: Constructor[], messages: ReduceOperationMessage[]): Promise<{ registration: RegisterReducer; results: ReducerResult[]; }>; //# sourceMappingURL=observe_reducer_messages.d.ts.map