import type { Account, AccountClass, AnyAccountSchema, BranchDefinition, CoValueClassOrSchema, CoValueFromRaw, SchemaResolveQuery, Loaded, MaybeLoaded, ResolveQuery, ResolveQueryStrict, CoValueCursor } from "jazz-tools"; type CoStateOptions> = { resolve?: ResolveQueryStrict; /** * Create or load a branch for isolated editing. * * Branching lets you take a snapshot of the current state and start modifying it without affecting the canonical/shared version. * It's a fork of your data graph: the same schema, but with diverging values. * * The checkout of the branch is applied on all the resolved values. * * @param name - A unique name for the branch. This identifies the branch * and can be used to switch between different branches of the same CoValue. * @param owner - The owner of the branch. Determines who can access and modify * the branch. If not provided, the branch is owned by the current user. * * For more info see the [branching](https://jazz.tools/docs/svelte/using-covalues/version-control) documentation. */ unstable_branch?: BranchDefinition; /** * Load the CoValue at a specific cursor. * * Cursors let you take a "snapshot" of a CoValue at the time of cursor creations. */ cursor?: CoValueCursor; }; type CoStateId = string | undefined | null; export declare class CoState = SchemaResolveQuery> { #private; constructor(Schema: V, id: CoStateId | (() => CoStateId), options?: CoStateOptions | (() => CoStateOptions)); update(value: MaybeLoaded>): void; get current(): MaybeLoaded>; } export declare class AccountCoState & CoValueFromRaw) | AnyAccountSchema, R extends ResolveQuery = SchemaResolveQuery> { #private; constructor(Schema: A, options?: CoStateOptions | (() => CoStateOptions)); update(value: MaybeLoaded>): void; logOut: () => void; get current(): MaybeLoaded>; get agent(): Account | import("jazz-tools").AnonymousJazzAgent; get isAuthenticated(): boolean; } /** * Class that provides the current connection status to the Jazz sync server. * * @returns `true` when connected to the server, `false` when disconnected * * @remarks * On connection drop, this will return `false` only when Jazz detects the disconnection * after 5 seconds of not receiving a ping from the server. */ export declare class SyncConnectionStatus { #private; constructor(); get current(): boolean; } export {}; //# sourceMappingURL=jazz.class.svelte.d.ts.map