import type { AggregateFactory, Messages, Reducible, Snapshot, State } from "../types"; /** * Reduces artifact from store * @param reducible the reducible artifact * @param id the reducible id (agg:stream or processmanager:actor) * @param callback optional reduction predicate * @returns a snapshot */ export declare function reduce(reducible: Reducible, id: { stream?: string; actor?: string; }, callback?: (snapshot: Snapshot) => void): Promise>; /** * Loads aggregate from store * @param factory the aggregate factory * @param stream the aggregate id (stream) * @param callback optional reduction predicate * @returns current snapshot */ export declare function load(factory: AggregateFactory, stream: string, callback?: (snapshot: Snapshot) => void): Promise>; //# sourceMappingURL=load.d.ts.map