import { ReplicantLite } from "@playpass/replicant-lite"; import "./ui/login-popup"; /** Options to pass to {@link login}. */ export declare type LoginOptions = { /** Additional tracking properties that will be sent along with login events. */ trackProps?: Record; }; declare global { interface Window { intlTelInput?: (element: HTMLElement) => void; } } declare let replicantClient: ReplicantLite | undefined; export { replicantClient }; export declare function requireReplicantClient(funcName: string): ReplicantLite; /** * Gets the ID of the player, which may be undefined if they haven't interacted with any Playpass * backend services yet. * * The player's ID may change after a call to {@link login}. */ export declare function getPlayerId(): string | undefined; export declare function isLoggedIn(): boolean; export declare function login(opts?: LoginOptions): Promise; export declare function logout(): void; export declare function initLogin(gameId: string): Promise;