import { ErrorCode } from "../types";
/**
 * Wraps an error to give more information about its type
 */
export declare class PolymeshError extends Error {
    code: ErrorCode;
    data?: Record<string, unknown>;
    /**
     * @hidden
     */
    constructor({ message, code, data, }: {
        message?: string;
        code: ErrorCode;
        data?: Record<string, unknown>;
    });
}
/**
 * @hidden
 */
export declare function isPolymeshError(err: unknown): err is PolymeshError;
//# sourceMappingURL=PolymeshError.d.ts.map