API index and search · Build metadata
Supporting declarations
packages/devtools/src/core.ts. These declarations explain referenced types. Only package-page symbols are package exports.
DevtoolsCore
export declare class DevtoolsCore {
private readonly store;
private readonly backend?;
private readonly detachStore;
private readonly detachServerDeltas?;
private readonly hasServerDeltaTap;
private readonly timelineCap;
private readonly deltaCap;
private readonly sampleRows;
private readonly autoFlush;
private readonly now;
private readonly pollHandle?;
private readonly timeline;
private readonly order;
/** The pending keys seen at the previous recompute — the diff basis for lifecycle transitions. */
private prevPendingKeys;
private deltas;
private deltaSeq;
/** Set by a `batch` delta, consumed by the next recompute: did view churn coincide with a
* confirmation this turn? (the §4.1 snap-back heuristic). */
private churnSeen;
private queries;
private optimistic?;
private readonly listeners;
private dirty;
private flushScheduled;
private snapshot;
/** Optional deregistration from the global hub (set by {@link attachDevtools}). */
onDetach?: () => void;
constructor(target: DevtoolsTarget, opts?: DevtoolsCoreOptions);
/** The current read-model. Reference-stable between updates (rebuilt only on recompute), so it is
* safe to feed a `useSyncExternalStore`-style binding. */
getState(): DevtoolsState;
/** Subscribe to updates; fires immediately with the current state, then after each recompute. */
subscribe(listener: () => void): () => void;
/** Force a synchronous recompute (also used by the safety-net poll and by tests). */
refresh(): void;
/** Clear the delta stream ring (a panel "clear" affordance). */
clearDeltas(): void;
/** Drop every SETTLED timeline row (confirmed/dropped), keeping live pending ones + the deltas. */
clearHistory(): void;
/** Detach from the client: stop the poll, drop the store tap, deregister from the global hub. */
detach(): void;
private attachServerDeltas;
private onStoreDelta;
private onServerDelta;
private onResultType;
private markDirty;
private flush;
private recompute;
/** Reconstruct the fork/rebase lifecycle by diffing this pending snapshot against the previous
* one (DEBUG-TOOLS-BROWSER-DESIGN §4.1): new keys → invoked; vanished keys → confirmed (mid ≤
* confirmedLmid) or dropped; a fold's `f:<foldKey>` → `m:<mid>` transition is linked, not double
* counted. */
private reconcileTimeline;
private rebuildQueries;
private pushServerDelta;
private pushChangeDelta;
private pushNormalizedDelta;
private appendDelta;
private addEntry;
private renameEntry;
}