import { PvError } from '@picovoice/web-utils'; import { PvStatus } from './types'; declare class EagleError extends Error { private readonly _status; private readonly _shortMessage; private readonly _messageStack; constructor(status: PvStatus, message: string, messageStack?: string[], pvError?: PvError | null); get status(): PvStatus; get shortMessage(): string; get messageStack(): string[]; private static errorToString; } declare class EagleOutOfMemoryError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleIOError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleInvalidArgumentError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleStopIterationError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleKeyError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleInvalidStateError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleRuntimeError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleActivationError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleActivationLimitReachedError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleActivationThrottledError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } declare class EagleActivationRefusedError extends EagleError { constructor(message: string, messageStack?: string[], pvError?: PvError | null); } export { EagleError, EagleOutOfMemoryError, EagleIOError, EagleInvalidArgumentError, EagleStopIterationError, EagleKeyError, EagleInvalidStateError, EagleRuntimeError, EagleActivationError, EagleActivationLimitReachedError, EagleActivationThrottledError, EagleActivationRefusedError, }; export declare function pvStatusToException(pvStatus: PvStatus, errorMessage: string, messageStack?: string[], pvError?: PvError | null): EagleError; //# sourceMappingURL=eagle_errors.d.ts.map