import type { PluginListenerHandle } from '@capacitor/core'; import { AttributeEditor } from './AttributeEditor'; import { SubscriptionListEditor } from './SubscriptionListEditor'; import { TagEditor } from './TagEditor'; import { TagGroupEditor } from './TagGroupEditor'; import type { AirshipPluginWrapper } from './AirshipPlugin'; import type { ChannelCreatedEvent } from './types'; /** * Airship channel. */ export declare class AirshipChannel { private readonly plugin; constructor(plugin: AirshipPluginWrapper); /** * Gets the device tags. * @returns A promise with the result. */ getTags(): Promise; /** * Gets the channel Id. * * @returns A promise with the result. */ getChannelId(): Promise; /** * Returns the channel ID. If the channel ID is not yet created the function it will wait for it before returning. After * the channel ID is created, this method functions the same as `getChannelId()`. * * @returns A promise with the result. */ waitForChannelId(): Promise; /** * Gets a list of the channel's subscriptions. * @returns A promise with the result. */ getSubscriptionLists(): Promise; /** * Edits tags. * @returns A tag group editor. */ editTags(): TagEditor; /** * Edits tag groups. * @returns A tag group editor. */ editTagGroups(): TagGroupEditor; /** * Edits attributes. * @returns An attribute editor. */ editAttributes(): AttributeEditor; /** * Edits subscription lists. * @returns A subscription list editor. */ editSubscriptionLists(): SubscriptionListEditor; /** * Enables channel creation if channel creation has been delayed. * It is only necessary to call this when isChannelCreationDelayEnabled * has been set to `true` in the airship config. * Deprecated. Use the Private Manager to disable all features instead. */ enableChannelCreation(): Promise; /** * Adds a channel created listener */ onChannelCreated(listener: (event: ChannelCreatedEvent) => void): Promise; }