/// <reference types="node" />
import { PubSub } from '@google-cloud/pubsub';
import { GoogleAuthOptions } from '../interfaces/gcloud-pub-sub.interface';
import { PublishOptions } from '@google-cloud/pubsub/build/src/topic';
export declare class GcloudPubSubService {
    private readonly googleAuthOptions;
    private readonly publishOptions;
    gcloudPubSubLib: PubSub;
    constructor(googleAuthOptions: GoogleAuthOptions, publishOptions: PublishOptions);
    publishMessage(topic: string, data: string | Uint8Array | number[] | ArrayBuffer | SharedArrayBuffer, attributes?: {
        [key: string]: string;
    }, encoding?: BufferEncoding): Promise<string>;
}
