import { IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; /** * @name Google Nearby * @description * This plugin adds support for the Google Nearby Messages API. * * @usage * ```typescript * import { GoogleNearby } from '@ionic-native/google-nearby/ngx'; * * * constructor(private googleNearby: GoogleNearby) { } * * this.googleNearby.publish('Hello') * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); * * this.googleNearby.subscribe() * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); * ``` */ export declare class GoogleNearbyOriginal extends IonicNativePlugin { /** * Publish a message * @param message {string} Message to publish * @return {Promise} Returns a promise that resolves when the message got published */ publish(message: string): Promise; /** * Subscribe to receive messages * @return {Observable} Returns an observable that emits received messages */ subscribe(): Observable; } export declare const GoogleNearby: GoogleNearbyOriginal;