import { type MarketParams } from "@morpho-org/blue-sdk"; import { type Address } from "viem"; import { type MarketV1WithdrawCollateralAction, type Metadata, type Transaction } from "../../types"; /** Parameters for {@link marketV1WithdrawCollateral}. */ export interface MarketV1WithdrawCollateralParams { market: { readonly chainId: number; readonly marketParams: MarketParams; }; args: { amount: bigint; onBehalf: Address; receiver: Address; }; metadata?: Metadata; } /** * Prepares a withdraw-collateral transaction for a Morpho Blue market. * * Direct call to `morpho.withdrawCollateral`. No bundler needed — collateral * flows out of Morpho, so there is no attack surface requiring the bundler. * * The caller (`msg.sender`) must be `onBehalf` or be authorized by them. * * @param params - Withdraw collateral parameters. * @returns Deep-frozen transaction. */ export declare const marketV1WithdrawCollateral: ({ market: { chainId, marketParams }, args: { amount, onBehalf, receiver }, metadata, }: MarketV1WithdrawCollateralParams) => Readonly>;