import { NativeCredential, OAuth2Token, Provider } from '../types.cjs'; declare function createAppleProvider(): Provider; declare const apple: Provider; interface AppleUserInfo { sub: string; email: string; email_verified: true | 'true'; is_private_email: boolean; real_user_status: number; name: string; picture: string; user?: { name: { firstName: string; lastName: string; }; email: string; }; nonce?: string; nonce_supported?: boolean; } interface AppleToken extends OAuth2Token { access_token: string; token_type: string; expires_in: number; refresh_token: string; id_token: string; } interface AppleNativeCredential extends NativeCredential { state: string; code: string; id_token: string; user: string; email?: string; } interface AppleErrorResponse { error: 'invalid_request' | 'invalid_client' | 'invalid_grant' | 'unauthorized_client' | 'unsupported_grant_type' | 'invalid_scope'; } export { type AppleErrorResponse, type AppleNativeCredential, type AppleToken, type AppleUserInfo, apple, createAppleProvider };