/**
 * Auth Profiles - OAuth Support
 *
 * OAuth credential resolution and refresh.
 */
import type { OAuthCredentials } from '@earendil-works/pi-ai';
/** Resolve API key for a profile (handles OAuth refresh) */
export declare function resolveApiKeyForProfile(profileId: string, refreshFn?: (credentials: OAuthCredentials) => Promise<OAuthCredentials>): Promise<string | undefined>;
/** Check if a profile has valid credentials */
export declare function profileHasAuth(profileId: string): boolean;
/** Resolve profile for a provider (finds first available profile) */
export declare function resolveProfileForProvider(provider: string, order?: string[]): string | undefined;
