import type { Scope } from '../../types.js'; export declare const PKG_ROOT: string; interface ManifestFile { path: string; size: number; sha256: string; symlink?: boolean; } export interface RuntimeManifest { id: string; packageVersion: string; files: ManifestFile[]; entries: Record; } interface RuntimeManifestModule { GENERATION_ID: RegExp; runtimeHome(): string; contained(root: string, candidate: string): boolean; parseSelectionTarget(target: string): string | null; sortInventory(files: ManifestFile[]): ManifestFile[]; validateManifestShape(manifest: unknown, context: { id: string; entryName: string; }): { ok: true; entry: string; } | { ok: false; error: string; }; } export declare const runtimeManifest: RuntimeManifestModule; export interface GenerationLocation { id: string; root: string; } export interface LocatedGeneration extends GenerationLocation { manifest: RuntimeManifest; } export interface GenerationLookup { generation: LocatedGeneration | null; error: string | null; } /** Find the immutable generation containing this loaded module, if any. */ export declare function processGeneration(): GenerationLocation | null; /** Read the selected symlink without treating an absent runtime as an exception in a source checkout. */ export declare function selectedGeneration(): GenerationLookup; export declare function processLocatedGeneration(): GenerationLookup; export declare function readPackageVersion(): string; export declare function resolveScope(raw: string | undefined): Scope; export {};