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<void>, 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",
    positionClosed = "Position is closed against this {address}"
}
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 {};
