import type { UserProfilePosition } from "./user-profile.types";
export type PositionStatus = "open" | "won_unclaimed" | "won_claimed" | "lost" | "sold";
export type PositionBucket = "active" | "closed";
export type PositionTone = "positive" | "negative" | "neutral";
export type PositionValueDisplay = {
    primaryLabel: string;
    deltaLabel: string;
    priceLabel: string;
    percentLabel: string;
    tone: PositionTone;
};
export type PositionTotalTradedDisplay = {
    primaryLabel: string;
    averageLabel: string;
};
export type PositionRowViewModel = {
    position: UserProfilePosition;
    positionStatus: PositionStatus;
    bucket: PositionBucket;
    title: string;
    thumbnailSrc: string;
    selectedOutcomeLabel: string;
    resolutionLabel: string;
    venueShareBreakdown: UserProfilePosition["venueShareBreakdown"];
    totalTraded: PositionTotalTradedDisplay;
    currentValue: PositionValueDisplay;
    payout: PositionValueDisplay;
    canClaim: boolean;
};
export type PositionViewModelLabels = {
    avgPrefix: string;
    nowPrefix: string;
    finalPrefix: string;
};
export declare const formatCurrency: (value: number | null | undefined) => string;
export declare const formatSignedCurrency: (value: number | null | undefined) => string;
export declare const formatPriceCents: (value: number | null | undefined) => string;
export declare const formatSignedPercent: (value: number | null | undefined) => string;
export declare const resolvePositionStatus: (position: UserProfilePosition) => PositionStatus;
export declare const resolvePositionBucket: (position: UserProfilePosition) => PositionBucket;
export declare const shouldDisplayPosition: (position: UserProfilePosition) => boolean;
export declare const partitionPositions: (positions: UserProfilePosition[]) => Record<PositionBucket, UserProfilePosition[]>;
export declare const getTotalTradedValue: (position: UserProfilePosition) => number | null;
export declare const getAveragePrice: (position: UserProfilePosition) => number | null;
export declare const getCurrentPrice: (position: UserProfilePosition) => number | null;
export declare const getCurrentValue: (position: UserProfilePosition) => number | null;
export declare const getFinalPayoutValue: (position: UserProfilePosition) => number | null;
export declare const getFinalPrice: (position: UserProfilePosition) => number | null;
export declare const getPnlValue: (position: UserProfilePosition, value: number | null) => number | null;
export declare const getPnlPercent: (position: UserProfilePosition, pnlValue: number | null) => number | null;
export declare const getFinalPnlValue: (position: UserProfilePosition, value: number | null) => number | null;
export declare const getFinalPnlPercent: (position: UserProfilePosition, pnlValue: number | null) => number | null;
export declare const getPositionTone: (value: number | null | undefined) => PositionTone;
export declare const toPositionRowViewModel: (position: UserProfilePosition, labels?: PositionViewModelLabels) => PositionRowViewModel;
