import { AuthParamListener } from "../hooks/useListenAuthParams"; export interface PasswordLoginData { username: string; password: string; autoSignin: boolean; } export interface PasswordLoginBody { application: string; username: string; password: string; autoSignin: boolean; organization: string; signinMethod: string; type: string; } export interface OauthParams { clientId: string; responseType: string; redirectUri: string; type: string; scope: string; state: string; nonce?: string; challengeMethod?: string; codeChallenge?: string; } export interface PhoneLoginParam { account: string; password: string; } export interface CasdoorConfig { serverUrl: string; clientId: string; organizationName: string; appName: string; redirectPath?: string; signinPath?: string; } export interface User { id: string; name: string; displayName?: string; email?: string; avatar?: string; organizations?: string[]; currentOrganization?: string; } export interface AuthState { isAuthenticated: boolean; user: User | null; loading: boolean; error: string | null; currentTenant: string | null; } export interface AuthContextType { checkAuth: (tenant?: string) => Promise; getLoginUrl: () => string; getSignupUrl: () => string; login: (tenant: string) => void; logout: (tenant?: string) => void; switchTenant: (tenant: string) => Promise; refreshAuth: () => Promise; setAuthCallback: (callback: AuthParamListener) => void; apiLogin: (tenant: string, data: PasswordLoginData) => void; } export interface TenantConfig { id: string; name: string; logo?: string; theme?: { primaryColor?: string; secondaryColor?: string; }; } //# sourceMappingURL=index.d.ts.map