import { ConfigurationError } from '@opensip-cli/core'; export declare const RUNTIME_MANIFEST_MAX_ENTRIES = 100000; export declare const RUNTIME_MANIFEST_MAX_TOTAL_BYTES: number; export declare const RUNTIME_MANIFEST_MAX_FILE_BYTES: number; export declare const RUNTIME_MANIFEST_MAX_PATH_BYTES = 4096; export declare const RUNTIME_MANIFEST_MAX_PATH_AGGREGATE_BYTES: number; export declare const RUNTIME_MANIFEST_MAX_DIGEST_BYTES: number; /** SQLite's disposable shared-memory index is normally 32 KiB. */ export declare const RUNTIME_MANIFEST_MAX_SQLITE_SHM_BYTES: number; export declare const RUNTIME_MANIFEST_DIFF_SAMPLE_LIMIT = 16; export type RuntimeTreePosture = 'cache-source' | 'project-runtime' | 'promotion-stage'; export type RuntimeManifestEntry = { readonly path: string; readonly kind: 'directory'; readonly mode: number; } | { readonly path: string; readonly kind: 'file'; readonly mode: number; readonly sizeBytes: number; readonly sha256: string; } | { readonly path: string; readonly kind: 'symlink'; readonly mode: number; readonly target: string; readonly targetSha256: string; }; export interface RuntimeTreeManifest { readonly version: 1; readonly rootMode: number; readonly sha256: string; readonly entryCount: number; readonly fileCount: number; readonly directoryCount: number; readonly symlinkCount: number; readonly totalBytes: number; readonly entries: readonly RuntimeManifestEntry[]; } export type RuntimeManifestFailureReason = 'changed' | 'digest-cap' | 'entry-cap' | 'hardlink' | 'invalid-path' | 'mode' | 'path-cap' | 'size-cap' | 'special-entry' | 'sqlite-absent-with-sidecar' | 'sqlite-close-unproven' | 'sqlite-invalid' | 'sqlite-mismatch' | 'sqlite-native-close-failed' | 'sqlite-sidecar-nonempty' | 'sqlite-unsupported' | 'stage-ownership' | 'symlink-escape' | 'symlink-invalid' | 'unsafe-owner'; export declare class RuntimeManifestError extends ConfigurationError { readonly reason: RuntimeManifestFailureReason; readonly releaseSafe: boolean; constructor(reason: RuntimeManifestFailureReason, options?: { readonly cause?: unknown; readonly releaseSafe?: boolean; }); } /** True only for a typed manifest failure that cannot prove native SQLite closure. */ export declare function isRuntimeManifestReleaseUnsafe(error: unknown): error is RuntimeManifestError; //# sourceMappingURL=runtime-manifest-model.d.ts.map