import * as React from "react"; import type { Auth } from "../../records/Auth"; import type { Brand } from "../../records/Brand"; import type { MyBookingInput, RegisterInput, OnMyBookingArg } from "../../services/auth/api"; import type { HandleAppleLoginResponse, Modal } from "../../services/auth/context"; declare type Arg = { auth: Auth | null; loading: boolean; state: "initial" | "loading" | "resolved"; modal: Modal | null; appleIdToken: string | null; appleUnconfirmedAuthToken: string | null; onOpenModal: (options?: Modal) => void; onCloseModal: () => void; setAppleIdToken: () => void; onMyBooking: (input: MyBookingInput) => Promise; onRegister: (input: RegisterInput) => Promise; onFacebookAuth: () => Promise; onGoogleAuth: () => Promise; onAppleAuth: () => Promise; onSetAuth: (auth: Auth) => void; onSignIn: (email: string, password: string) => Promise; onSignOut: () => void; onGetUserInfoAndLogin: () => Promise; }; declare type Props = { brand: Brand; redirectURL: string; onMyBooking: (arg: OnMyBookingArg) => void; onRegister: () => void; onSignIn: (auth: Auth) => void; onSignOut: () => void; onSetAuth?: (auth: Auth | null) => void; children: (arg: Arg) => React.ReactNode; }; declare type State = { auth: Auth | null; loading: boolean; modal: Modal | null; }; /** * @deprecated * use 'AuthProvider' from 'services/auth/context' */ export default class InitAuth extends React.PureComponent { state: { auth: Auth | null; loading: boolean; modal: null; }; componentDidMount(): void; setAppleIdToken: () => void; handleSetAuth: (auth: Auth) => void; onGetUserInfoAndLogin: () => Promise; handleMyBooking: (input: MyBookingInput) => Promise; handleRegister: (input: RegisterInput) => Promise; handleFacebookAuth: () => Promise; handleGoogleAuth: () => Promise; handleAppleAuth: () => Promise; handleSignIn: (email: string, password: string) => Promise; handleSignOut: () => void; handleOpenModal: (options?: Modal | undefined) => void; handleCloseModal: () => void; render(): React.ReactNode; } export {};