/**
 * Financial Tool remote MCP API credentials.
 *
 * Precedence, highest first:
 *   1. Per-agent bundle — reserved for future symmetry.
 *   2. Shared in-memory heartbeat cache (`sharedKeys.financialToolApiKey`).
 *   3. Local `config.financialToolApiKey` — manual/offline fallback.
 */
let bundleFinancialToolApiKey;
let sharedFinancialToolApiKey;
export function setBundleFinancialToolApiKey(apiKey) {
    if (bundleFinancialToolApiKey === apiKey)
        return false;
    bundleFinancialToolApiKey = apiKey;
    return true;
}
export function setSharedFinancialToolApiKey(apiKey) {
    if (sharedFinancialToolApiKey === apiKey)
        return false;
    sharedFinancialToolApiKey = apiKey;
    return true;
}
export function resolveFinancialToolApiKey(config) {
    return bundleFinancialToolApiKey ?? sharedFinancialToolApiKey ?? config.financialToolApiKey;
}
//# sourceMappingURL=financial-tool-credentials.js.map