import type SuperTokens from 'supertokens-auth-react'; import type { CurrentUser } from '@cedarjs/auth'; export interface SuperTokensUser { userId: string; accessTokenPayload: any; } export type SessionRecipe = { signOut: () => Promise; doesSessionExist: () => Promise; getAccessTokenPayloadSecurely: () => Promise; getAccessToken: () => Promise; getUserId: () => Promise; }; export declare function createAuth(superTokens: SuperTokensAuth, customProviderHooks?: { useCurrentUser?: () => Promise; useHasRole?: (currentUser: CurrentUser | null) => (rolesToCheck: string | string[]) => boolean; }): { AuthContext: import("react").Context | undefined>; AuthProvider: ({ children }: import("@cedarjs/auth").AuthProviderProps) => import("react").JSX.Element; useAuth: () => import("@cedarjs/auth").AuthContextInterface; }; export interface SuperTokensAuth { sessionRecipe: SessionRecipe; redirectToAuth: (typeof SuperTokens)['redirectToAuth']; } //# sourceMappingURL=supertokens.d.ts.map