import type { PluginListenerHandle } from '@capacitor/core'; import type { EventType, EventTypeMap } from './EventType'; import { AirshipConfig } from './types'; export interface AirshipPlugin { perform(options: { method: string; value?: any; }): Promise<{ value?: any; }>; addListener(eventName: string, listenerFunc: (...args: any[]) => any): Promise; } export declare class AirshipPluginWrapper { private readonly plugin; constructor(plugin: AirshipPlugin); perform(method: string, value?: any): Promise; addListener(eventType: T, listener: (event: EventTypeMap[T]) => any): Promise; } declare module '@capacitor/cli' { interface PluginsConfig { /** * Airship plugin options */ Airship?: { /** * Default config options */ config?: AirshipConfig; }; } }