import { HookError } from "@prismicio/plugin-kit"; export declare class PrismicError extends Error { name: string; } export declare class UnauthorizedError extends PrismicError { name: "SMUnauthorizedError"; } export declare class UnauthenticatedError extends PrismicError { name: "SMUnauthenticatedError"; message: string; } export declare class NotFoundError extends PrismicError { name: "SMNotFoundError"; } export declare class UnexpectedDataError extends PrismicError { name: "SMUnexpectedDataError"; } export declare class InternalError extends PrismicError { name: "SMInternalError"; } export declare class PluginError extends PrismicError { name: "SMPluginError"; } export declare class PluginHookResultError extends PrismicError { name: "SMPluginHookResultError"; constructor(errors: HookError[]); } export declare class UnsupportedError extends PrismicError { name: "SMUnsupportedError"; } type PrismicErrorNames = "SMPrismicError" | UnauthorizedError["name"] | UnauthenticatedError["name"] | NotFoundError["name"] | UnexpectedDataError["name"] | InternalError["name"] | PluginError["name"] | PluginHookResultError["name"] | UnsupportedError["name"]; type ShallowPrismicError = Error & { name: TName; }; export declare const isPrismicError: (error: unknown, name?: TName) => error is TName extends string ? ShallowPrismicError : Error; export declare const isUnauthorizedError: (error: unknown) => error is ShallowPrismicError<"SMUnauthorizedError">; export declare const isUnauthenticatedError: (error: unknown) => error is ShallowPrismicError<"SMUnauthenticatedError">; export declare const isNotFoundError: (error: unknown) => error is ShallowPrismicError<"SMNotFoundError">; export declare const isUnexpectedDataError: (error: unknown) => error is ShallowPrismicError<"SMUnexpectedDataError">; export declare const isInternalError: (error: unknown) => error is ShallowPrismicError<"SMInternalError">; export declare const isPluginError: (error: unknown) => error is ShallowPrismicError<"SMPluginError">; export declare const isUnsupportedError: (error: unknown) => error is ShallowPrismicError<"SMUnsupportedError">; export {};