import type { Primitive } from "../../core/types.js"; import type { LiveMapDocumentAttributeValue, LiveMapDocumentAttrs } from "../../types/livemap.types.js"; import type { LiveTree } from "./livetree.js"; export type AsyncLiveTreeAttrs = Readonly<{ set(name: string, value: LiveMapDocumentAttributeValue): Promise>; setMany(values: LiveMapDocumentAttrs): Promise>; drop(name: string): Promise>; dropMany(names: readonly string[]): Promise>; clear(): Promise>; replace(values: LiveMapDocumentAttrs): Promise>; }>; export type AsyncLiveTreeFlags = Readonly<{ set(...names: string[]): Promise>; clear(...names: string[]): Promise>; }>; export type AsyncLiveTreeId = Readonly<{ set(value: string): Promise>; clear(): Promise>; }>; export type AsyncLiveTreeClasslist = Readonly<{ set(value: string | readonly string[]): Promise>; add(...names: string[]): Promise>; remove(...names: string[]): Promise>; toggle(name: string, force?: boolean): Promise>; clear(): Promise>; }>; export type AsyncLiveTreeText = Readonly<{ set(value: Primitive): Promise>; add(value: Primitive): Promise>; insert(index: number, value: Primitive): Promise>; }>; export type AsyncLiveTreeForm = Readonly<{ setValue(value: string): Promise>; setChecked(value: boolean): Promise>; }>; /** Explicit Promise-settled exact document-authoring context for one LiveTree. */ export interface AsyncLiveTree { readonly attrs: AsyncLiveTreeAttrs; readonly flags: AsyncLiveTreeFlags; readonly id: AsyncLiveTreeId; readonly classlist: AsyncLiveTreeClasslist; readonly text: AsyncLiveTreeText; readonly form: AsyncLiveTreeForm; readonly sync: TOwner; empty(): Promise>; remove(): Promise; } //# sourceMappingURL=async-livetree.d.ts.map