export type NativeModule = 'better-sqlite3' | 'sqlite-vec'; export declare function isLikelyAbiFailure(msg: string): boolean; /** * Top-level entry. Always throws — caller should let the throw propagate * (or convert it to a stderr write + process.exit). On the happy path of * "auto-heal could be triggered", the throw carries a user-actionable * message saying "rebuild started, restart your MCP client in ~1 minute". * On any unexpected internal error, throws the plain remediation message * instead — the user always gets something actionable. */ export declare function tryAutoHealAbiMismatch(underlyingErr: string, module: NativeModule): never;