import { SuiTransactionBlockResponse } from "@mak201010/library-sui/";
export declare const LOCKED_ERROR_MESSAGE = "Failed to sign transaction by a quorum of validators because of locked objects";
export type ResponseSchema = {
    ok: boolean;
    data: any;
    message: string;
    code?: number | string;
    stack?: string;
};
interface ProviderRpcError {
    code: number | string;
    message: string;
    data?: unknown;
    stack?: string;
}
export declare const handleResponse: (response: ProviderRpcError, ok: boolean) => ResponseSchema;
export declare const TransformToResponseSchema: (contactCall: () => Promise<SuiTransactionBlockResponse>, successMessage: string) => Promise<ResponseSchema>;
export declare enum SuccessMessages {
    adjustLeverage = "Leverage Adjusted to {leverage}x.",
    adjustMarginAdd = "{amount} USDC margin Added to position.",
    adjustMarginRemove = "{amount} USDC margin Removed from position.",
    withdrawMargin = "{amount} USDC withdrawn.",
    approveUSDC = "{amount} USDC approved.",
    depositToBank = "{amount} USDC deposited to Margin Bank.",
    setSubAccounts = "This {address} is successfully {status} as a subaccount",
    transferCoins = "{balance} {coin} transferred to {walletAddress}"
}
export declare enum VerificationStatus {
    Success = "success",
    Restricted = "restricted",
    Blocked = "blocked"
}
export declare enum APIErrorMessages {
    restrictedUser = "This wallet address has been identified as high-risk. You will not be able to open any new positions or deposit funds on the exchange. You may, however, close out any open positions and withdraw free collateral"
}
export {};
