import type { OAuthCredentials } from "@earendil-works/pi-ai/oauth";
import type { LegacyOAuthProvider, OAuthProviderDescriptor } from "./oauth-provider-bridge.ts";
export type { OAuthAuthInfo, OAuthCredentials, OAuthDeviceCodeInfo, OAuthLoginCallbacks, OAuthPrompt, OAuthSelectOption, OAuthSelectPrompt, } from "@earendil-works/pi-ai/oauth";
export { getOAuthApiKey, getOAuthProvider, getOAuthProviders, registerOAuthProvider, resetOAuthProviders, } from "./oauth-provider-bridge.ts";
declare module "@earendil-works/pi-ai/oauth" {
    function getOAuthApiKey(providerId: string, credentials: Record<string, OAuthCredentials>): Promise<{
        newCredentials: OAuthCredentials;
        apiKey: string;
    } | null>;
    function getOAuthProvider(providerId: string): OAuthProviderDescriptor | undefined;
    function getOAuthProviders(): OAuthProviderDescriptor[];
    function registerOAuthProvider(provider: LegacyOAuthProvider & {
        id: string;
    }): void;
    function resetOAuthProviders(): void;
}
//# sourceMappingURL=oauth-compat.d.ts.map