/** * Chain & platform helpers. * Maps API chain values (bsc/robinhood/base/solana) to user-facing display names. * Accepts 'bnb' as alias for 'bsc' and 'rh' for 'robinhood' where applicable. */ /** * Valid API chain values. Mirrors backend api/schemas/agent.py VALID_CHAINS. * Only used for membership checks — user-facing order is BSC, Robinhood, Base, Solana. */ export declare const VALID_CHAINS: readonly ["base", "bsc", "robinhood", "solana"]; /** Platform → supported chains. Mirrors backend conf/platform.py PLATFORM_CHAINS. */ export declare const PLATFORM_CHAINS: Record; /** Default platform per chain. Mirrors backend DEFAULT_PLATFORM_BY_CHAIN. */ export declare const DEFAULT_PLATFORM: Record; /** * Chain name → numeric chain_id. * * Needed because fee economics are NOT chain-invariant: the same platform can run a * different fee model on each chain it supports. `flap` on BSC splits fees 10/90 across * 8 recipients at a 3% tax; `flap` on Robinhood launches non-vault, so Kibi takes 0%, * the creator keeps 100%, and there is no split slot at all. GET /token/platform-config * defaults to the BSC config when `chain_id` is omitted, so every config lookup MUST * pass the chain or it will silently describe the wrong chain's economics. */ export declare const CHAIN_IDS: Record; /** Numeric chain_id for a chain name (already normalised), or undefined if unknown. */ export declare function chainIdFor(chain: string | undefined | null): number | undefined; /** Get platforms available for a chain, default first. */ export declare function platformsForChain(chain: string): string[]; /** Check if a platform is valid for a given chain. */ export declare function isValidPlatform(platform: string, chain: string): boolean; /** Map API chain name to display name */ export declare function chainDisplay(chain: string | undefined | null): string; /** Normalise user-input chain to API chain name. Accepts 'bnb' → 'bsc', 'rh' → 'robinhood'. */ export declare function normaliseChain(chain: string): string;