import { LocalNode, type RawCoValue } from "cojson"; import { AnonymousJazzAgent, CoValue, CoValueClass, CoValueLoadingState, ExportedCoValue, type SubscriptionScope, inspect, CoValueCursor } from "../internal.js"; import { Group, TypeSym } from "../internal.js"; /** @internal */ export declare abstract class CoValueBase implements CoValue { [TypeSym]: string; abstract $jazz: CoValueJazzApi; $isLoaded: true; constructor(); /** @category Internals */ static fromRaw(this: CoValueClass, raw: RawCoValue): V; toJSON(): object | any[] | string; [inspect](): string | object | any[]; } export declare abstract class CoValueJazzApi { private coValue; /** @category Internals */ _instanceID: string; _subscriptionScope: SubscriptionScope | undefined; constructor(coValue: V); get id(): string; get loadingState(): typeof CoValueLoadingState.LOADED; abstract get raw(): RawCoValue; abstract get owner(): Group | undefined; /** @internal */ get localNode(): LocalNode; /** @private */ get loadedAs(): import("./account.js").Account | AnonymousJazzAgent; /** * The timestamp of the creation time of the CoValue * * @category Content */ get createdAt(): number; /** * Returns the account ID of the user who created this CoValue. * * Creation is determined by inspecting the earliest valid transaction, * Note: Where the author is a sealer/signer identifiers (e.g. accounts) * nothing is returned intentionally * * @returns {string | undefined} The creating user's account ID, or * `undefined` if no author can be determined * * @category Content */ get createdBy(): string | undefined; /** * The timestamp of the last updated time of the CoValue * * Returns the creation time if there are no updates. * * @category Content */ get lastUpdatedAt(): number; /** * The name of the active branch of the CoValue */ get branchName(): string | undefined; get isBranched(): boolean; get cursor(): CoValueCursor | undefined; createCursor(): CoValueCursor; /** * Deeply merge the current branch into the main CoValues. * * Doesn't have any effect when there are no changes to merge, or the current CoValue is not a branch */ unstable_merge(): void; export(): ExportedCoValue; } //# sourceMappingURL=CoValueBase.d.ts.map