import type { Db } from "@zmeel/db";
/**
 * Resolves platform-managed API keys for the cloud adapter.
 * In SaaS mode, zmeel provides its own API keys so users don't need to.
 */
export declare function getManagedApiKey(provider: string): string | null;
/**
 * Injects a managed API key into the adapter config if the agent
 * is configured to use managed keys (apiKeySource === "managed" or unset).
 */
export declare function injectManagedKeyIfNeeded(adapterType: string, config: Record<string, unknown>): Record<string, unknown>;
/**
 * Subscription-aware version of injectManagedKeyIfNeeded.
 * Checks the company's subscription to determine whether to use
 * a BYOK key or the platform managed key.
 */
export declare function injectApiKeyForCompany(db: Db, companyId: string, adapterType: string, config: Record<string, unknown>): Promise<Record<string, unknown>>;
//# sourceMappingURL=managed-api-keys.d.ts.map