/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import type { Directory } from "../../fs/Directory.js";
import { type WalCommit, type WalCommitId } from "./WalCommit.js";
/**
 * Reads WAL commit entries from segment files in a `wal/` directory.
 */
export declare class WalReader {
    #private;
    constructor(walDir: Directory);
    /**
     * List available WAL segment numbers, sorted ascending.
     */
    segments(): Promise<number[]>;
    /**
     * Read all commits after the given commit ID.
     */
    read(after?: WalCommitId): AsyncIterable<{
        id: WalCommitId;
        commit: WalCommit;
    }>;
}
//# sourceMappingURL=WalReader.d.ts.map