import { Store } from '@ngrx/store'; import { NGXLogger } from 'ngx-logger'; export declare class StackdriverErrorReporterService { store$: Store; logger: NGXLogger; private apiKey; private context; private disabled; private projectId; private reportUncaughtExceptions; private reportUnhandledPromiseRejections; private serviceContext; private targetUrl; constructor(store$: Store, logger: NGXLogger); /** * Report an error to the Stackdriver Error Reporting API * @param err - The Error object or message string to report. * @param options - Configuration for this report. * @param [options.skipLocalFrames=1] - Omit number of frames if creating stack. * @returns A promise that completes when the report has been sent. */ report(err: Error | string, options?: any): Promise; /** * Set the user for the current context. * * @param user - the unique identifier of the user (can be ID, email or custom token) or `undefined` if not logged in. */ setUser(user: string): void; /** * Initialize the StackdriverErrorReporter object. * @param config - the init configuration. * @param [config.context={}] - the context in which the error occurred. * @param [config.context.user] - the user who caused or was affected by the error. * @param config.key - the API key to use to call the API. * @param config.projectId - the Google Cloud Platform project ID to report errors to. * @param [config.service=web] - service identifier. * @param [config.version] - version identifier. * @param [config.reportUncaughtExceptions=true] - Set to false to stop reporting unhandled exceptions. * @param [config.disabled=false] - Set to true to not report errors when calling report(), this can be used when developping locally. */ start(config: any): void; }