import { type ChainId, type Market, type MarketId, type Position } from "@morpho-org/blue-sdk"; import type { BlueInputBundlerOperations } from "@morpho-org/bundler-sdk-viem"; export declare namespace MigratableBorrowPosition_Blue { /** * Arguments required to generate migration operations for a borrow position. */ interface Args { /** The market to migrate the position to. */ marketTo: MarketId; /** The amount of collateral to migrate. */ collateralAssets: bigint; /** * The amount to migrate. Must be `0n` if `borrowShares` is not `0n`. * * @default 0n */ borrowAssets?: bigint; /** * The number of shares to migrate. Must be `0n` if `borrowAssets` is not `0n`. * * @default 0n */ borrowShares?: bigint; /** Slippage tolerance for the current market (optional). */ slippageFrom?: bigint; /** Slippage tolerance for the target market (optional). */ slippageTo?: bigint; } } /** * Interface for a migratable borrow position on Morpho Blue. */ export interface IMigratableBorrowPosition_Blue { /** The market associated with the borrow position. */ market: Market; /** Details of the borrow position, including shares, user, and collateral. */ position: Pick; } /** * Class representing a migratable borrow position on Morpho Blue. */ export declare class MigratableBorrowPosition_Blue implements IMigratableBorrowPosition_Blue { readonly market: Market; readonly position: Pick; /** * Creates a new instance of `MigratableBorrowPosition_Blue`. * * @param config - Configuration containing the market and position details. */ constructor(config: IMigratableBorrowPosition_Blue); /** * Generates the migration operations required to migrate a borrow position * to a new market. * * @param args - Arguments containing migration details such as the target market, * collateral amount, borrow amount, and slippage tolerances. * @param chainId - The chain ID for the migration. * * @returns An operation object for bundling Blue migration calls. */ getMigrationOperations({ marketTo, collateralAssets, borrowAssets, borrowShares, slippageFrom, slippageTo, }: MigratableBorrowPosition_Blue.Args, chainId: ChainId): BlueInputBundlerOperations["Blue_SupplyCollateral"]; }