import { IDisposable } from '@stoplight/lifecycle'; import { GraphiteError } from '.'; import { INotifier } from './notifier'; export interface IErrorReporter { reportError(error: GraphiteError): void; onError(handler: (result: { error: GraphiteError; }) => void): IDisposable; debug(message: string): void; warn(message: string): void; } export declare const GENERIC_GRAPHITE_WARNING = "graphite_warning"; declare class Reporter implements IErrorReporter { private notifier; constructor(notifier: INotifier); protected get reporter(): import("@stoplight/types").Optional; debug(message: string): void; warn(message: string): void; reportError(error: GraphiteError): void; onError(handler: (result: { error: GraphiteError; }) => void): INotifier; } export declare const reporter: Reporter; export {};