import type { SerializedSnapError, SnapError } from "@metamask/snaps-sdk";
import type { JsonRpcError } from "@metamask/utils";
/**
 * Check if an object is a `SnapError`.
 *
 * @param error - The object to check.
 * @returns Whether the object is a `SnapError`.
 */
export declare function isSnapError(error: unknown): error is SnapError;
/**
 * Check if a JSON-RPC error is a `SnapError`.
 *
 * @param error - The object to check.
 * @returns Whether the object is a `SnapError`.
 */
export declare function isSerializedSnapError(error: JsonRpcError): error is SerializedSnapError;
//# sourceMappingURL=errors.d.cts.map