import type { AppConfig } from "../../core/types/config";
import type { WidgetEventMap } from "../../core/types/event";
/**
 * Parses URL search params into an initialAssets config object.
 *
 * Supports two formats:
 * - Legacy:  ?chains=fromId,toId&tokens=fromAddr,toAddr
 * - Pretty:  ?fromChain=ethereum&fromToken=eth&toChain=polygon&toToken=usdc
 *   - Collapsed chain/token: when both from/to chains or tokens are the same,
 *     they are collapsed into a single param:
 *       - ?chain=ethereum -> from and to chains are both ethereum
 *       - ?token=eth -> from and to tokens are both eth
 */
export declare const parseInitialAssetsFromUrl: (searchParams: URLSearchParams) => AppConfig["initialAssets"];
/**
 * Builds URL search params from a `swapParamsChanged` event detail.
 * Uses the pretty format, collapsing chain/token params when both sides match.
 */
export declare const buildUrlSearchParamsFromSwapEvent: (swapParams: WidgetEventMap["swapParamsChanged"]) => URLSearchParams;
