import { default as React } from 'react'; import { ChargeCardRepaymentWithUser, Logo, PaymentHistoryAccountInfo } from '@zeniai/client-epic-state'; import { ValuesDropdownOption } from '../../common/filters/spendManagementFiltersHelpers'; /** * Returns true if the repayment was made via autopay (scheduled repayment type, * or older repayments where repaymentType and paidByUser are both undefined). */ export declare function isAutopayRepayment(repayment: ChargeCardRepaymentWithUser): boolean; /** * Returns the display text for a payment history source (deposit) account, * matching the format used in the charge card payment history row and filters. */ export declare function getSourceAccountDisplayText(depositAccountName: string | null | undefined, depositAccountLast4: string | null | undefined, sourceAccountUnknownLabel: string): string; export interface SourceAccountIconOption { iconColor?: string; iconType?: "zeniChecking"; photo?: string; } /** * Returns the icon/photo fields for a payment history source account filter option, * matching the logo logic used in ChargeCardPaymentHistoryRow. For deposit accounts * with a name, returns iconType and iconColor for the Zeni checking icon. For payment * accounts with a logo, returns the photo URL string (caller should apply toZeniUrl). */ export declare function getSourceAccountIconOption(info: PaymentHistoryAccountInfo, getImageSrcFromLogo: (logo: Logo) => string): SourceAccountIconOption; /** * Renders the option icon for payment history source account filter options. * When the option has iconType "zeniChecking" and iconColor, returns the Zeni * checking icon; otherwise returns null (caller will fall back to photo or nothing). */ export declare function renderSourceAccountOptionIcon(option: ValuesDropdownOption): React.ReactNode | null;