import type { Root, RootContent, Nodes, Definition } from 'mdast'; import type { ResolvedOptions } from './types.js'; declare global { interface ImportMeta { env?: { DEV?: boolean; MODE?: string; }; } } export interface KeyedBlock { /** Reconcile identity for the outer keyed list (from `keyOf`, else content-based). */ key: string | number; /** Content identity — changes iff the block's source (or the reference * definitions it resolves) changes. Drives in-place row rebuilds when a custom * `keyOf` gives blocks stable identity. */ hash: string; node: Nodes; } /** The block's source text (via mdast position offsets), or a structural fallback. */ export declare function blockSource(node: RootContent, source: string): string; /** Test/benchmark hook: reads (and optionally resets) the from-scratch hash count. */ export declare function keyingHashComputations(reset?: boolean): number; /** Derive a stable, unique-per-render key for each top-level block. Identical block * source (AND identical resolved references) ⇒ identical base key; duplicate keys — * whether from identical content or a user `keyOf` — get a `#n` suffix so the outer * `each` never receives a colliding key (which would corrupt its keyed reconcile). */ export declare function toKeyedBlocks(root: Root, source: string, options: ResolvedOptions, definitions: ReadonlyMap): KeyedBlock[]; //# sourceMappingURL=keying.d.ts.map