import { Atom } from './Atom2'; /** * Defines a class that can create atoms based on a site ID and lamport timestamp. */ export declare class AtomFactory { private _site; private _time; /** * Gets the site ID for this factory. */ get site(): string; /** * Gets the current lamport time from this factory. */ get time(): number; /** * Creates a new atom factory with the given site. * @param site The site that this factory creates atoms for. * @param timestamp The timestamp that this factory is starting at. */ constructor(site: string, timestamp?: number); /** * Updates the timestamp stored by this factory. * @param atom The atom that is being added to the tree. */ updateTime(atom: Atom): void; /** * Creates a new Atom with the given op. * @param op The operation to include with the atom. * @param cause The parent cause of this atom. */ create(op: T, cause: Atom, priority?: number): Promise>; } //# sourceMappingURL=AtomFactory2.d.ts.map