import { SerializableAction } from '../Redux/SerializableAction'; import { Identity, IdentityConstructor } from 'ts-eventsourcing/ValueObject/Identity'; import { EntityMetadata } from '../Redux/EntityMetadata'; import { Playhead } from '../ValueObject/Playhead'; export interface ReadModelMetadata extends EntityMetadata { readModelId: ReadModelId; recordedOn: Date; playhead?: Playhead; } export interface ReadModelAction = ReadModelMetadata> extends SerializableAction { } export declare function asReadModelAction = ReadModelMetadata>(action: SerializableAction, ReadModelIdClass?: IdentityConstructor): ReadModelAction;