/** * Config G9 — deterministic plugin load order + capability declarations. * * Hosts may set `order` on each plugin declaration. Lower numbers load first. * Ties break by `module` string (localeCompare). Missing `order` sorts after * any explicit order (stable relative to other unordered entries by module). */ /** Minimal declaration shape needed for ordering (avoids circular imports). */ export interface OrderablePluginDeclaration { module: string; order?: number; capabilities?: string[]; enabled?: boolean; options?: Record; } /** Well-known capability tags plugins may advertise in config. */ export declare const PLUGIN_CAPABILITY_KINDS: readonly ["storeAdapter", "auditSink", "builtin", "cliCommand", "projection"]; export type PluginCapabilityKind = (typeof PLUGIN_CAPABILITY_KINDS)[number]; /** * Return a new array sorted for deterministic `loadPlugins` application. * Does not mutate the input. */ export declare function sortPluginDeclarations(declarations: readonly T[]): T[]; /** * Normalize capability tags from a declaration. Unknown tags are kept (host * extension) but returned separately so the loader can emit an info diagnostic. */ export declare function normalizePluginCapabilities(raw: readonly string[] | undefined): { capabilities: string[]; unknown: string[]; }; //# sourceMappingURL=plugin-order.d.ts.map