import type { FTEViewId } from "../../constants/fte-views"; import { Service } from "../../index"; import userPrefs = Service.userPrefs; export declare function userPrefsService(): { fetchUserPreferences: (p: { userId: string; orgId: string; }, cb?: ((res: any) => void | userPrefs.savedUserPreferencesResponse) | undefined) => Promise; saveUserPreferences: (p: { organizationId: string; id: string; data: Partial<{ selectedRoleName: string; teamName: string | null; teamId: string | null; dialNumber: string | null; isExtension: boolean; extensionNumber: string; dialNumberValueForNonUS: string; isInternational: boolean; internationalPhoneNumber: string; countryCallingCode: string; countryCodeValue: string; isRememberMyCredentials: boolean; deviceType: Service.Aqm.Agent.DeviceType; deviceId: string | null; isEmergencyModalAlreadyDisplayed: boolean; dontShowAgain: boolean; fteViews: FTEViewId[]; bnrSettingsEnabled: boolean; }>; }, cb?: ((res: any) => void | userPrefs.savedUserPreferencesResponse) | undefined) => Promise; updateUserPreferences: (p: { organizationId: string; id: string; data: Partial<{ selectedRoleName: string; teamName: string | null; teamId: string | null; dialNumber: string | null; isExtension: boolean; extensionNumber: string; dialNumberValueForNonUS: string; isInternational: boolean; internationalPhoneNumber: string; countryCallingCode: string; countryCodeValue: string; isRememberMyCredentials: boolean; deviceType: Service.Aqm.Agent.DeviceType; deviceId: string | null; isEmergencyModalAlreadyDisplayed: boolean; dontShowAgain: boolean; fteViews: FTEViewId[]; bnrSettingsEnabled: boolean; }>; }, cb?: ((res: any) => void | userPrefs.savedUserPreferencesResponse) | undefined) => Promise; deleteUserPreferences: (p: { organizationId: string; id: string; }, cb?: ((res: any) => void | {}) | undefined) => Promise<{}>; }; type userPrefsErrorIds = "Service.userPrefs.fetchUserPreferences" | "Service.userPrefs.saveUserPreferences" | "Service.userPrefs.updateUserPreferences" | "Service.userPrefs.deleteUserPreferences"; declare module "@uuip/unified-ui-platform-sdk" { namespace Err { interface Ids { "Service.userPrefs": userPrefsErrorIds; } } } declare module "../../index" { namespace Service.userPrefs { type UserPreferences = Partial<{ selectedRoleName: string; teamName: string | null; teamId: string | null; dialNumber: string | null; isExtension: boolean; extensionNumber: string; dialNumberValueForNonUS: string; isInternational: boolean; internationalPhoneNumber: string; countryCallingCode: string; countryCodeValue: string; isRememberMyCredentials: boolean; deviceType: Service.Aqm.Agent.DeviceType; deviceId: string | null; isEmergencyModalAlreadyDisplayed: boolean; dontShowAgain: boolean; fteViews: FTEViewId[]; bnrSettingsEnabled: boolean; }>; type savedUserPreferencesResponse = { organizationId: string; id: string; desktopPreference: string; }; type EUserPrefsSaved = { detail: { isPrefSaved: boolean; }; }; type EUserPrefs = { detail: UserPreferences; }; type EUserIsEmergency = { detail: { isEmergencyModalAlreadyDisplayed: boolean; }; }; } } export {}; //# sourceMappingURL=user-preferences-service.d.ts.map