import { EmitterSubscription } from 'react-native'; interface configType { host: string; port: number; username: string; password: string; virtualhost: string; ttl: number; ssl: boolean; } declare type RnTinyRbmqType = { initialize(config: configType): void; connect(): void; basicConsume(queue: string): void; close(): void; }; declare type callbackType = { [index: string]: any; }; export default class RnTinyRabbitMq { callbacks: callbackType; rnTinyRbmq: RnTinyRbmqType; subscriptions: EmitterSubscription; constructor(config: configType); connect(): void; close(): void; clear(): void; basicConsume(queue: string): void; handleEvent: (event: (name: string, ...args: any[]) => any) => void; on(event: string, callback: Function): void; removeon(event: string): void; } export {};