import { type StoredProviderCredential } from '../../../core/auth/index.js';
import { type OpenAiCompatibleModelDiscoverySource } from '../../../core/llm/index.js';
import type { LlmProvider, LlmProviderEndpointRuntime } 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 readonly DEFAULT_OLLAMA_OPENAI_BASE_URL = "http://127.0.0.1:11434/v1";
    static readonly DEFAULT_OLLAMA_BASE_URL = "http://127.0.0.1:11434";
    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 resolveLocalEndpointCredentialSource(provider: LlmProvider): Extract<ProviderCredentialSource, {
        type: 'local-endpoint';
    }> | undefined;
    static resolveOpenAiCompatibleEndpointRuntime(provider: LlmProvider, runtime?: ApiKeyRuntime): LlmProviderEndpointRuntime | undefined;
    static resolveOpenAiCompatibleModelDiscoverySources(): OpenAiCompatibleModelDiscoverySource[];
    static formatMissingCredentialMessage(model: string): string;
    private static firstDefinedNonEmpty;
    static resolveOllamaBaseUrl(): string;
    static resolveOllamaOpenAiBaseUrl(): string;
    private static resolveEndpointApiKey;
    private static resolveOpenAiCompatibleBaseUrl;
    private static resolveOpenAiCompatibleNativeBaseUrl;
}
//# sourceMappingURL=service.d.ts.map