/**
 * IndexStalenessChecker - Detects stale bitmap indexes by comparing
 * frontier metadata stored at build time against current writer refs.
 */
import type BlobPort from '../../../ports/BlobPort.ts';
import type CodecPort from '../../../ports/CodecPort.ts';
import type IndexStoragePort from '../../../ports/IndexStoragePort.ts';
import type IndexStorePort from '../../../ports/IndexStorePort.ts';
/**
 * Loads the frontier from an index tree's shard OIDs.
 *
 * @returns Frontier map, or null if not present (legacy index)
 */
export declare function loadIndexFrontier(shardOids: Record<string, string>, storage: IndexStoragePort & BlobPort, options?: {
    codec?: CodecPort;
    indexStore?: IndexStorePort;
}): Promise<Map<string, string> | null>;
export interface StalenessResult {
    stale: boolean;
    reason: string;
    advancedWriters: string[];
    newWriters: string[];
    removedWriters: string[];
}
/**
 * Compares index frontier against current frontier to detect staleness.
 */
export declare function checkStaleness(indexFrontier: Map<string, string>, currentFrontier: Map<string, string>): StalenessResult;
