/** * @file errors.ts * @description Custom error classes for the Inkd Protocol SDK. */ /** Base error class for all Inkd SDK errors. */ export declare class InkdError extends Error { readonly code: string; constructor(message: string, code: string); } /** Thrown when a wallet does not hold any InkdToken. */ export declare class NotInkdHolder extends InkdError { readonly address: string; constructor(address: string); } /** Thrown when there are insufficient funds for an operation. */ export declare class InsufficientFunds extends InkdError { readonly required: bigint; readonly available: bigint; constructor(required: bigint, available: bigint); } /** Thrown when a token ID does not exist. */ export declare class TokenNotFound extends InkdError { readonly tokenId: bigint; constructor(tokenId: bigint); } /** Thrown when an inscription index is out of bounds. */ export declare class InscriptionNotFound extends InkdError { readonly tokenId: bigint; readonly index: number; constructor(tokenId: bigint, index: number); } /** Thrown when the caller is not the owner of the token. */ export declare class NotTokenOwner extends InkdError { readonly tokenId: bigint; readonly caller: string; constructor(tokenId: bigint, caller: string); } /** Thrown when the client is not connected. */ export declare class ClientNotConnected extends InkdError { constructor(); } /** Thrown when the Arweave client is not connected. */ export declare class ArweaveNotConnected extends InkdError { constructor(); } /** Thrown when a transaction fails on-chain. */ export declare class TransactionFailed extends InkdError { readonly txHash?: string; constructor(message: string, txHash?: string); } /** Thrown when max supply has been reached. */ export declare class MaxSupplyReached extends InkdError { constructor(); } /** Thrown when encryption/decryption fails. */ export declare class EncryptionError extends InkdError { constructor(message: string); } /** Thrown when an Arweave upload fails. */ export declare class UploadError extends InkdError { constructor(message: string); } //# sourceMappingURL=errors.d.ts.map