import type { Manifest, ManifestEntry } from "./manifest.js"; export declare const MAX_TOTAL_BYTES = 524288000; export declare const MAX_FILES = 5000; export declare const MAX_FILE_BYTES = 104857600; export type BoundKind = "total" | "count" | "file"; export interface BoundViolation { kind: BoundKind; observed: number; limit: number; /** The one offending path, for the per-file case. */ path?: string; /** The three largest files by size — the actual diagnosis for the total case. */ largest: ManifestEntry[]; } /** The three largest files, descending. Local information about the creator's own disk. */ export declare function largestFiles(files: ManifestEntry[], n?: number): ManifestEntry[]; /** * The bounds are INCLUSIVE at the stated number: exactly 500 MiB, exactly 5000 * files and exactly 100 MiB all pass. */ export declare function checkBounds(manifest: Manifest, limits?: { total?: number; count?: number; file?: number; }): BoundViolation | undefined;