/** Immutable contribution chunks, shared by state checkpoints and independent forks. */ import type { Value } from './value.js'; interface Chunk { readonly values: readonly Value[]; readonly prior: Chunk | null; } /** Appending copies at most one short tail, never the contributed prefix. */ export declare class ContributionHistory { readonly head: Chunk | null; readonly tail: readonly Value[]; readonly count: number; constructor(head?: Chunk | null, tail?: readonly Value[], count?: number); append(value: Value): ContributionHistory; /** Index chunk references once; each subsequent newest-first read is constant work. */ view(length: number): ContributionView; } /** A transient index into the current window. It is not retained in state. */ export declare class ContributionView { private readonly tail; private readonly chunks; readonly size: number; constructor(tail: readonly Value[], chunks: readonly (readonly Value[])[], size: number); at(back: number): Value; } export {}; //# sourceMappingURL=history.d.ts.map