import React, { FC } from 'react'; import { CookieConfig, OidcConfig, AutoRefreshConfig } from '@descope/web-js-sdk'; import { CustomStorage } from '@descope/web-component'; import useSdk from './useSdk'; type Hooks = Parameters[0]['hooks']; interface IAuthProviderProps { projectId: string; baseUrl?: string; baseStaticUrl?: string; baseCdnUrl?: string; persistTokens?: boolean; autoRefresh?: AutoRefreshConfig; sessionTokenViaCookie?: CookieConfig; refreshTokenViaCookie?: CookieConfig; hooks?: Hooks; oidcConfig?: OidcConfig; storeLastAuthenticatedUser?: boolean; keepLastAuthenticatedUserAfterLogout?: boolean; refreshCookieName?: string; getExternalToken?: () => Promise; customStorage?: CustomStorage; children?: React.ReactNode; } declare const AuthProvider: FC; export default AuthProvider;