import type { ModuleRuntime } from './module-runtime.js'; import type { ResolvedPackage } from './package-resolver.js'; /** One source of truth per package: executable declaration or JSON Schema. */ export declare function readPluginConfigSchema(pkg: ResolvedPackage, modules?: Pick): Promise> | null>; /** Detached declaration metadata for preflight and custom-resolver startup views. */ export declare function immutableConfigSchema(schema: Readonly>): Readonly>; /** * Thrown when a trusted plugin declares both `definePlugin({ config })` and a root `schema.json`. * Neither source wins: startup stops so the two schemas cannot silently drift apart. */ export declare class PluginConfigSourceConflictError extends TypeError { readonly packageName: string; readonly entryFile: string; readonly schemaFile: string; constructor(packageName: string, entryFile: string, schemaFile: string); }