import type { OptimalRate } from '@paraswap/core'; import type { OrderedExecutorLeg, ResolvedLeg, RoutePlan, RoutePlanExchange, RoutePosition } from './encoding-types'; export declare function buildRoutePlan(priceRoute: OptimalRate): RoutePlan; export declare function flattenRoutePlan(routePlan: RoutePlan): RoutePosition[]; export declare function walkRoutePlan(routePlan: RoutePlan): RoutePlanExchange[]; export declare function routePositionKey(position: RoutePosition): string; export declare function getRoutePlanLegCount(routePlan: RoutePlan): number; export declare function getOrderedExecutorLegs(routePlan: RoutePlan, resolvedLegs: ResolvedLeg[]): OrderedExecutorLeg[];