import type { Build } from "../..";
export type BuildManifestArgs = {
    buildManifest: boolean;
};
export type BuildManifestConfig = {
    buildManifest: boolean;
};
export declare class BuildManifest {
    private lastTocId;
    apply(program: Build): void;
    /**
     * Reads OpenAPI companion entries recorded by the openapi includer extension during the run.
     *
     * No flag/format check is needed here: emission is gated upstream in the openapi includer
     * (`ai.openapiCompanions` + `outputFormat` + size limits). The includer only returns a
     * companion file when it should be written, the openapi CLI extension only registers entries
     * for files it actually wrote, so `run.openapiCompanions` is already the gated set.
     *
     * Entries are deduplicated and sorted for deterministic manifest output.
     */
    private collectOpenapiCompanions;
    /**
     * Collects per-page restricted-access rules from the finalized metadata store.
     * Uses the same `meta.dump()` output that md2md writes into page frontmatter.
     */
    private collectRestrictedAccess;
    private readYfmConfig;
    private buildFileTrie;
    private shouldReplaceFile;
    private nextId;
}
