import { type AnyPackageManifest } from "./types"; export type LoadManifestResult = { ok: true; manifest: AnyPackageManifest; } | { ok: false; error: "manifest_invalid" | "manifest_missing"; details: string; }; /** Dynamic-import a package's ./manifest subpath and validate it. `specifier` * is normally the bare package name; pass a file URL (optionally with a * cache-busting query) when loading from a specific node_modules tree. * Never throws — callers surface a degraded status instead of crashing. */ export declare const loadManifest: (specifier: string) => Promise<{ ok: true; manifest: AnyPackageManifest; } | { ok: false; error: "manifest_invalid" | "manifest_missing"; details: string; }>; /** Unwrap a module namespace ({ manifest } named export and/or default) or * pass a bare manifest object through. */ export declare const resolveManifestExport: (moduleOrManifest: unknown) => any; export declare const validateManifest: (candidate: unknown) => { ok: true; manifest: AnyPackageManifest; } | { ok: false; error: "manifest_invalid" | "manifest_missing"; details: string; };