import { CollateralType, OptionTypeV2 } from "@mithraic-labs/tokenized-euros"; import { OptionSeries, OptionChain, LpParams, AssetGroup, OptionGroup, TradeHistoryEvent } from "../../types"; /** * Finds the option series in an option chain that matches the given series ID. * * @param {OptionChain} optionChain - The option chain to search. * @param {number} seriesId - The series ID to match. * @returns {OptionSeries | null} The matched option series, or null if no match was found. */ export declare function findOptionSeries(optionChain: OptionChain, seriesId: number): OptionSeries | null; /** * Determines the collateral type based on the given option type. * * @param {OptionTypeV2} optionType - The option type to base the determination on. * @returns {CollateralType} The determined collateral type. */ export declare function getCollateralType(optionType: OptionTypeV2): CollateralType; /** * Parses option type from Anchor, decoded as an object into an enum. * @param {{ put?: Object, call?: Object }} type - The object representing the option type to parse. * @returns {OptionTypeV2} The parsed option type. * @throws {Error} If the option type is not supported. * @example * // returns OptionTypeV2.PUT * parseOptionType({ put: {} }); */ export declare function parseToOptionTypeV2(type: { put?: Object; call?: Object; longPutSpread?: Object; longCallSpread?: Object; }): OptionTypeV2; /** * @internal */ export declare const assetGroupsToNumber: (assetGroups: any) => AssetGroup[]; /** * @internal */ export declare const optionGroupsToNumber: (optionGroups: any) => OptionGroup[]; /** * @internal */ export declare const lpParamsToNumber: (lpParams: any) => LpParams; /** * @internal */ export declare const tradingParamsToNumber: (tradingParams: any) => any; /** * @internal */ export declare const greeksI128ToNumber: (greeks: any) => { delta: number; gamma: number; vega: number; theta: number; }; /** * @internal */ export declare const accountSummaryToNumber: (accountSummary: any) => { normalizedGreeks: { delta: number; gamma: number; vega: number; theta: number; }; freeCapitalInStable: number; totalCapitalInStable: number; navInStable: number; navInUnderlying: number; }; export declare const tradeHistoryEventToNumber: (event: TradeHistoryEvent) => { underlyingPrice: number; markPrice: number; capitalUtilizationFee: number; newNormalizedGreeks: { delta: number; gamma: number; vega: number; theta: number; }; weightedMultiplier: number; }; //# sourceMappingURL=typeUtils.d.ts.map