import { MarketGqlFields, MarketConfigGql, FlowLimiterGql, RewardDistributorGql, RewardGql, PositionGqlFields, PositionCapGqlFields, BorrowGql, LpPositionCollateralGql, LpPositionCollateralConfigGql, UserRewardDistributorGql, UserRewardGql } from "./queryTypes.js"; import { FlowLimiterType, MarketType, MarketConfigType, RewardType, RewardDistributorType, PositionType, PositionCapType, BorrowType, LpPositionCollateralType, LpPositionCollateralConfigType, UserRewardDistributorType, UserRewardType } from "./parsedTypes.js"; /** * Normalizes a Sui coin type string by ensuring all hex addresses have the `0x` prefix. * Handles generic types like `DEEPBOOK_STAKED` where inner type addresses also need the prefix. */ export declare function normalizeCoinType(coinType: string): string; export declare function parseFlowLimiter(flowLimiter: FlowLimiterGql): FlowLimiterType; export declare function parseReward(reward: RewardGql | null): RewardType | null; export declare function parseRewardDistributor(distributor: RewardDistributorGql): RewardDistributorType; export declare function parseMarketConfig(config: MarketConfigGql): MarketConfigType; /** * Parse a market's flattened GraphQL fields into the domain `MarketType`. * * @param fields Flat Move struct fields (from `value.json` / `contents.json`). * @param dynamicFieldAddress The address of the `Field` wrapper * object that holds this market under `MARKETS_TABLE_ID`. Distinct * from `fields.id` (which is the inner `Market` struct's UID). */ export declare function parseMarket(fields: MarketGqlFields, dynamicFieldAddress: string | undefined): MarketType; /** * Parse a position cap's flattened GraphQL fields into the domain * `PositionCapType`. PositionCap is a top-level owned object, so its * Sui object address is identical to the inner `id: UID` field — the * caller does not need to (and should not) pass it separately. */ export declare function parsePositionCap(fields: PositionCapGqlFields): PositionCapType; export declare function parseBorrow(borrow: BorrowGql): BorrowType; export declare function parseLpPositionCollateralConfig(config: LpPositionCollateralConfigGql): LpPositionCollateralConfigType; export declare function parseLpPositionCollateral(lpCollateral: LpPositionCollateralGql | null): LpPositionCollateralType | null; export declare function parseUserReward(userReward: UserRewardGql | null): UserRewardType | null; export declare function parseUserRewardDistributor(userRewardDistributor: UserRewardDistributorGql): UserRewardDistributorType; export declare function parsePosition(fields: PositionGqlFields, dynamicFieldAddress: string | undefined): PositionType; //# sourceMappingURL=parser.d.ts.map