import { TraktApiResponse } from './trakt-client.model.cjs'; import '@dvcol/base-http-client'; import '@dvcol/common-utils/common/models'; import '@dvcol/common-utils/http/fetch'; import '../api/trakt-api.filters.cjs'; declare const TraktErrorTypes: { TraktApiError: string; TraktApiResponseError: string; TraktValidationError: string; TraktFilterError: string; TraktUnauthorizedError: string; TraktRateLimitError: string; TraktInvalidParameterError: string; TraktPollingExpiredError: string; TraktPollingCancelledError: string; TraktExpiredTokenError: string; TraktInvalidCsrfError: string; }; declare class TraktApiError extends Error { /** * Inner error that this error wraps. */ readonly error?: Error | TraktApiResponse; constructor(message: string, error?: Error | TraktApiResponse); } declare class TraktValidationError extends Error { constructor(message?: string); } declare class TraktFilterError extends Error { constructor(message?: string); } declare class TraktUnauthorizedError extends TraktApiError { constructor(message?: string, error?: Error | TraktApiResponse); } declare class TraktRateLimitError extends TraktApiError { constructor(message?: string, error?: Error | TraktApiResponse); } declare class TraktInvalidParameterError extends Error { constructor(message?: string); } declare class TraktPollingExpiredError extends Error { constructor(message?: string); } declare class TraktPollingCancelledError extends Error { constructor(message?: string); } declare class TraktExpiredTokenError extends Error { constructor(message?: string); } declare class TraktInvalidCsrfError extends Error { readonly state?: string; readonly expected?: string; constructor({ state, expected }?: { state?: string; expected?: string; }); } declare class TraktApiResponseError extends Error { /** Inner response that this error wraps. */ readonly response: TraktApiResponse; constructor(message: string, response: TraktApiResponse); } declare const parseError: (error: Error | TraktApiResponse) => Error | TraktApiResponse | TraktApiResponseError; export { TraktApiError, TraktApiResponseError, TraktErrorTypes, TraktExpiredTokenError, TraktFilterError, TraktInvalidCsrfError, TraktInvalidParameterError, TraktPollingCancelledError, TraktPollingExpiredError, TraktRateLimitError, TraktUnauthorizedError, TraktValidationError, parseError };