import type { CompactContentStore, LeafId } from "./compact-content-store.ts";
import { type IndexNode } from "./compact-index-tree.ts";
import { type ValueRef } from "./compact-values.ts";
interface Stored<T> {
    readonly value: T;
    readonly ref: ValueRef;
    readonly owner: LeafId;
}
export interface ComponentRoot<T> {
    readonly header: IndexNode<Stored<T>> | undefined;
    readonly ref: ValueRef | undefined;
}
/**
 * Active AVL headers project only changed paths into bounded, spillable nodes. Frozen and settled
 * owners retain the disk-addressable root, not the hot navigation tree or an array of its values.
 */
export declare class CompactComponentRoots<T extends object> {
    private readonly store;
    private readonly values;
    private readonly tree;
    private readonly refs;
    private readonly leavesOf;
    constructor(store: CompactContentStore, leavesOf: (value: T) => readonly LeafId[]);
    get residentNodes(): number;
    set(root: ComponentRoot<T>, key: string, value: T | undefined): ComponentRoot<T>;
    /** Header reclamation is off the acceptance path; the transferred payload root already owns every value. */
    release(root: ComponentRoot<T>): void;
    /**
     * The incremental reader (S03b-4): rows in key order, each value as the ref its walk starts from, with one
     * tree page resident per open level. Nothing here assembles a value; `entries` does, for the whole-view callers.
     */
    rows(ref: ValueRef | undefined, valid: () => void): AsyncGenerator<readonly [string, ValueRef]>;
    entries(ref: ValueRef | undefined, valid: () => void): AsyncGenerator<readonly [string, T]>;
    private project;
}
export {};
//# sourceMappingURL=compact-component-roots.d.ts.map