import { type StoredProviderCredential } from '../../../core/auth/index.js';
import type { LlmProvider } from '../../../core/llm/types.js';
import type { ApiKeyRuntime, ProviderCredentialSource } from './types.js';
/**
 * Resolves runtime credential sources for provider-backed agent execution.
 */
export declare class RuntimeCredentialService {
    static resolveProviderApiKey(provider: LlmProvider): string | undefined;
    static resolveApiKeyForModel(model: string, runtime?: ApiKeyRuntime): string | undefined;
    static resolveOAuthCredentialForModel(model: string, options?: {
        storePath?: string;
    }): Extract<StoredProviderCredential, {
        type: 'oauth';
    }> | undefined;
    static hasCredentialForModel(model: string, runtime?: ApiKeyRuntime & {
        credentialStorePath?: string;
    }): boolean;
    static resolveCredentialSourceForModel(model: string, runtime?: ApiKeyRuntime): ProviderCredentialSource;
    static formatMissingCredentialMessage(model: string): string;
    private static firstDefinedNonEmpty;
}
//# sourceMappingURL=service.d.ts.map