import "isomorphic-fetch"; import type { User } from "../../records/User"; import type { AuthUser } from "../../records/Auth"; export declare enum Endpoint { PLEXUS = "plexus", TEQUILA = "tequila" } export declare type OnMyBookingArg = { token: string; bid: number; }; export declare function getTokenUser(token: string, endpoint?: Endpoint): Promise; export declare type MyBookingInput = { bid: string; email: string; iata: string; departure: Date; }; export declare function getMyBookingToken({ bid, email, iata, departure, }: MyBookingInput): Promise; declare type LoginInput = { email: string; password: string; brand: string; }; export declare function signIn(input: LoginInput, endpoint?: Endpoint): Promise; export declare function logout(token: string): Promise; export declare type RegisterInput = { firstName: string; lastName: string; email: string; password: string; }; export declare function register(brand: string, input: RegisterInput): Promise; declare type SocialAuthProvider = "facebook" | "google"; export declare function socialAuth(provider: SocialAuthProvider, url: string): Promise; export declare type APIResponse = { token: string; user_id: string; }; export declare type AppleAPIResponse = { token: string; user_id: string; is_unconfirmed_private: boolean; }; export declare function facebookLogin(accessToken: string): Promise; export declare function googleLogin(accessToken: string): Promise; export declare function appleLogin(idToken: string): Promise; export declare function resetPassword(email: string, brandId: string): Promise; export {};