import { UserProfile, RefreshTokenResult } from '@kinde/js-utils'; import { KindeBrowserOptions } from './types'; import { KindeAuthHook } from './useKindeAuth'; export declare const KindeAuthContext: import('react').Context; export type ErrorProps = { error: string; errorDescription: string; }; declare enum AuthEvent { login = "login", logout = "logout", register = "register", switchOrg = "switchOrg", tokenRefreshed = "tokenRefreshed" } type EventTypes = { (event: AuthEvent.tokenRefreshed, state: RefreshTokenResult, context: KindeAuthHook): void; (event: AuthEvent, state: Record, context: KindeAuthHook): void; }; type KindeCallbacks = { onSuccess?: (user: UserProfile, state: Record, context: KindeAuthHook) => void; onError?: (props: ErrorProps, state: Record, context: KindeAuthHook) => void; onEvent?: EventTypes; }; type KindeAuthConfig = { domain: string | undefined; clientId: string | undefined; scopes?: string; enhancedSecurity?: boolean; browserOptions?: KindeBrowserOptions; }; export declare const KindeAuthProvider: ({ children, config, callbacks, }: { children: React.ReactNode; config: KindeAuthConfig; callbacks?: KindeCallbacks; }) => import('react').JSX.Element | null; export {};