import { Client } from 'paho-mqtt'; import { IotCredentials } from '../interfaces'; import { MainStore } from './mainStore'; type Subscription = { id: string; handler: (data: any) => void; }; export declare class NotificationStore { main: MainStore; connected: boolean; mqttClient?: Client; listeners: Map; subscribeQueue: { topic: string; handler: Subscription['handler']; referenceId: string; }[]; subscribedTopics: { topic: string; handler: Subscription['handler']; referenceId: string; }[]; reconnectAttempts: number; reconnectHandler?: () => void; get topicStage(): 'prod' | 'stage'; constructor(main: MainStore); isConnected(): boolean; setReconnectHandler(handler: () => void): void; getCredentials(): Promise; connect(credentials?: IotCredentials): Promise; connectWithCredentials(data: IotCredentials): void; executeListeners(subscriptions: Subscription[], message: unknown): void; resolveSubscriptions(): void; resolveSubscriptionQueue(): void; subscribe(topicPostfix: string, onMessage: Subscription['handler'], reference?: string): string | undefined; unsubscribe(topicPostfix: string, reference: string): void; } export {};