/** * Gateway sync utility for keeping the model registry up to date. * * This is a thin wrapper around `@mastra/core/llm`'s `GatewayRegistry` so * mastracode and `mastra dev` share a single implementation for fetching * providers, generating types, and writing to the global cache. Keep this * file small — provider/registry logic belongs in `@mastra/core`. */ /** * Sync gateways and update the global cache via `@mastra/core`'s registry. * * Skips the sync if the global cache was refreshed within the last * `DEFAULT_SYNC_INTERVAL_MS`, unless `force` is set. Multiple calls in * the same process coalesce while a sync is in flight. */ export declare function syncGateways(force?: boolean): Promise; /** * Start periodic gateway sync. * @param intervalMs Sync interval in milliseconds (default: 5 minutes) */ export declare function startGatewaySync(intervalMs?: number): void; /** * Stop periodic gateway sync. */ export declare function stopGatewaySync(): void; //# sourceMappingURL=gateway-sync.d.ts.map