export type PluginInspection = { status: "ready"; candidate: string; entryPath: string; packageName: string; version: string | null; } | { status: "broken"; candidate: string; reason: string; buildCommand?: string; } | { status: "missing"; candidates: string[]; }; export type PluginLoadResult = { loaded: true; inspection: Extract; } | { loaded: false; inspection: PluginInspection; message: string; }; export type PluginType = "adapter" | "protocol" | "application"; export interface LoadedPluginInfo { type: PluginType; name: string; packageName: string; version: string | null; entryPath: string; /** 当前进程实际成功求值的 ESM 标识;重试加载时可能包含缓存隔离参数。 */ moduleUrl?: string; } export type ReadyPluginInspection = Extract; export interface PluginLoadOptions { timeoutMs?: number; } export declare const PLUGIN_LOAD_TIMEOUT_MS = 15000; //# sourceMappingURL=plugin-loader-types.d.ts.map