//#region src/utils/errors.d.ts /** * @description Base class for DeepBook errors */ declare class DeepBookError extends Error { constructor(message: string); } /** * @description Error thrown when a resource is not found */ declare class ResourceNotFoundError extends DeepBookError { constructor(resourceType: string, key: string); } /** * @description Error thrown when configuration is invalid or missing */ declare class ConfigurationError extends DeepBookError { constructor(message: string); } /** * @description Error thrown when transaction validation fails */ declare class ValidationError extends DeepBookError { constructor(message: string); } /** * @description Standard error messages */ declare const ErrorMessages: { readonly ADMIN_CAP_NOT_SET: "Admin capability not configured"; readonly MARGIN_ADMIN_CAP_NOT_SET: "Margin admin capability not configured"; readonly MARGIN_MAINTAINER_CAP_NOT_SET: "Margin maintainer capability not configured"; readonly COIN_NOT_FOUND: (key: string) => string; readonly POOL_NOT_FOUND: (key: string) => string; readonly MARGIN_POOL_NOT_FOUND: (key: string) => string; readonly BALANCE_MANAGER_NOT_FOUND: (key: string) => string; readonly MARGIN_MANAGER_NOT_FOUND: (key: string) => string; readonly PRICE_INFO_NOT_FOUND: (coinKey: string) => string; readonly INVALID_ARGUMENT_COUNT: (expected: number, got: number) => string; readonly PARAMETER_REQUIRED: (name: string) => string; readonly INVALID_ARGUMENT: (arg: string, type: string) => string; readonly INVALID_ADDRESS: "Address must be a valid Sui address"; }; //#endregion export { ConfigurationError, DeepBookError, ErrorMessages, ResourceNotFoundError, ValidationError }; //# sourceMappingURL=errors.d.mts.map