/** * ## Profile * This module manages user profiles, including preferences and settings, for a personalized kiosk experience. * * @packageDocumentation */ import { ProfileAuthLink } from './profile-auth.link'; export * from './index'; export * from './profile-auth.link'; import { KioskInfo } from '@eflyn/esuite-client'; export interface KioskProfile extends KioskInfo { id: number; name: string; width: number; height: number; password: string; username: string; preview?: boolean; pinSecret: string; pin: string; } export declare class Profile { /** @internal */ checkPin(token: string): Promise; /** @internal */ getAuthLink(): Promise; /** * Check if the kiosk is connected synchronously. * @example * ```javascript * eflyn.profile.isConnectedSync(); * ``` */ isConnectedSync(): any; /** * Sign out of the current kiosk profile. * @example * ```javascript * eflyn.profile.logout(); * ``` */ logout(): any; /** * Check if the kiosk is connected to MyEflyn and the internet. * @example * ```javascript * eflyn.profile.isConnected(); * ``` */ isConnected(): Promise; /** * Attempt to reconnect to MyEflyn. * @example * ```javascript * eflyn.profile.reconnect(); * ``` */ reconnect(): Promise; /** * Get the current profile synchronously. * @example * ```javascript * eflyn.profile.getProfileSync(); * ``` */ getProfileSync(): any; /** * Get the current kiosk profile. * @example * ```javascript * eflyn.profile.getProfile(); * ``` */ getProfile(): Promise; /** * Set the current kiosk profile synchronously. * @example * ```javascript * eflyn.profile.setProfileSync(p); * ``` */ setProfileSync(p: any): any; /** * Set the current kiosk profile. * @example * ```javascript * eflyn.profile.setProfile(p); * ``` */ setProfile(p: any): any; /** * Toggle preview mode. * @example * ```javascript * eflyn.profile.setPreview(preview); * ``` */ setPreview(preview: boolean): any; }