import { type MarketParams } from "@morpho-org/blue-sdk"; import type { Action } from "../../bundler/index.js"; import type { BlueReallocationPlan, VaultV1Reallocation, VaultV2BlueReallocation } from "../../types/index.js"; /** * Builds PublicAllocator V1 reallocation actions for a Morpho Blue target market. * * Preserves the supplied reallocation order and aggregates each allocator call's native fee. * * @param params.reallocations - Validated Vault V1 reallocations to execute. * @param params.targetMarketParams - Morpho Blue market receiving the reallocated liquidity. * @returns The reallocation actions and aggregate native fee, with zero V2 penalty assets. * @internal */ export declare const buildVaultV1ReallocationActions: ({ reallocations, targetMarketParams, }: { readonly reallocations: readonly VaultV1Reallocation[]; readonly targetMarketParams: MarketParams; }) => { actions: Action[]; fee: bigint; penaltyAssets: bigint; }; /** * Builds BluePublicAllocator reallocation actions for a Morpho Blue target market. * * Prepends one aggregate loan-token funding action when penalties are non-zero, then builds one * allocator action per validated Vault V2 reallocation. * * @param params.chainId - Chain whose registered Bundler3 and allocator addresses are used. * @param params.reallocations - Validated Vault V2 Blue reallocations to execute. * @param params.targetMarketParams - Morpho Blue market receiving the reallocated liquidity. * @param params.penaltyFundingSource - Optional source of penalty assets. Defaults to the * transaction initiator. * @returns The funding and reallocation actions and aggregate penalty assets, with zero native fee. * @internal */ export declare const buildVaultV2BlueReallocationActions: ({ chainId, reallocations, targetMarketParams, penaltyFundingSource, }: { readonly chainId: number; readonly reallocations: readonly VaultV2BlueReallocation[]; readonly targetMarketParams: MarketParams; readonly penaltyFundingSource?: "initiator" | "generalAdapter1"; }) => { actions: Action[]; fee: bigint; penaltyAssets: bigint; }; /** * Validates a homogeneous Blue reallocation plan and builds its Bundler actions. * * Dispatches Vault V1 and Vault V2 plans to their version-specific builders. V1 plans aggregate * native fees, while V2 plans aggregate loan-token penalties using the selected funding source. * * @param params.chainId - Chain whose registered Bundler3 and allocator addresses are used. * @param params.reallocations - Optional homogeneous Vault V1 or Vault V2 reallocation plan. * @param params.targetMarketParams - Morpho Blue market receiving the reallocated liquidity. * @param params.penaltyFundingSource - Optional source of V2 penalty assets. Defaults to the * transaction initiator. * @returns The reallocation actions, aggregate V1 native fee, and aggregate V2 penalty assets. * @internal */ export declare const buildBlueReallocationActions: ({ chainId, reallocations, targetMarketParams, penaltyFundingSource, }: { readonly chainId: number; readonly reallocations: BlueReallocationPlan | undefined; readonly targetMarketParams: MarketParams; readonly penaltyFundingSource?: "initiator" | "generalAdapter1"; }) => { actions: Action[]; fee: bigint; penaltyAssets: bigint; };