import type { KlawConfig } from "../../../config/types.klaw.js"; import type { PluginInstallRecord } from "../../../config/types.plugins.js"; export type RepairMissingPluginInstallsResult = { changes: string[]; warnings: string[]; failedPluginIds?: string[]; /** * The full install-record map after repair. Equal to the input * `baselineRecords` (or the disk-loaded records when no baseline was * provided) plus any mutations (newly-installed payloads, removed stale * bundled records). Callers that need to subsequently overwrite the * persisted index MUST seed their write from this map — the disk has * already been written to with the same set, but the in-memory caller * state is stale otherwise. */ records: Record; }; export declare function repairMissingConfiguredPluginInstalls(params: { cfg: KlawConfig; env?: NodeJS.ProcessEnv; /** * Optional pre-seeded records. When provided, this map is used instead of * the disk-loaded install-record snapshot. Pass the in-memory records * from earlier post-core steps (sync/npm) so this repair pass can layer * its mutations on top of them rather than reading a stale disk * snapshot. The merged result is persisted before this function returns. */ baselineRecords?: Record; }): Promise; export declare function repairMissingPluginInstallsForIds(params: { cfg: KlawConfig; pluginIds: Iterable; channelIds?: Iterable; blockedPluginIds?: Iterable; env?: NodeJS.ProcessEnv; baselineRecords?: Record; }): Promise;