import type { PluginListenerHandle } from '@capacitor/core'; import type { AirshipPluginWrapper } from './AirshipPlugin'; import type { DisplayPreferenceCenterEvent, PreferenceCenter } from './types'; /** * Airship Preference Center. */ export declare class AirshipPreferenceCenter { private readonly plugin; constructor(plugin: AirshipPluginWrapper); /** * Requests to display a preference center. * * Will either emit an event to display the * Preference Center if auto launch is disabled, * or display the OOTB UI. * @param preferenceCenterId The preference center Id. * @returns A promise. */ display(preferenceCenterId: string): Promise; /** * Gets the preference center config. * @param preferenceCenterId The preference center Id. * @returns A promise with the result. */ getConfig(preferenceCenterId: string): Promise; /** * Enables or disables showing the OOTB UI when requested to display by either * `display` or by a notification with some other action. * @param preferenceCenterId The preference center Id. * @param autoLaunch true to show OOTB UI, false to emit events. * @returns A promise with the result. */ setAutoLaunchDefaultPreferenceCenter(preferenceCenterId: string, autoLaunch: boolean): Promise; /** * Adds a display message center listener. */ onDisplay(listener: (event: DisplayPreferenceCenterEvent) => void): Promise; }