import { PubSub } from 'graphql-subscriptions';
import { AmqpPubSub } from 'graphql-rabbitmq-subscriptions';
import { AmqpConfig } from './amqp.interface';
export declare let pubsub: PubSub | AmqpPubSub;
export declare class GapiPubSubService {
    private config;
    private pubSub;
    sub: AmqpPubSub | PubSub;
    constructor(config: AmqpConfig, pubSub?: AmqpPubSub | PubSub | any);
    asyncIterator<T>(event: any): AsyncIterator<T>;
    publish(signal: string, data: any): boolean;
}
