/** * Interface for installment data */ export interface Installment { amount: string; isCompleted?: boolean; progressType?: 'empty' | 'small' | 'medium' | 'full'; label?: string; } /** * Timeline display style options */ export type TimelineStyle = 'default' | 'simple'; /** * Label format options (deprecated - kept for backward compatibility) */ export type LabelFormat = 'date' | 'simple'; export declare class AmwalInstallmentsTimeline { /** * The total amount to be paid in installments */ amount: number; /** * Number of installments */ installmentsCount: number; /** * The installment payments (optional - will be calculated if not provided) */ installmentData: string; /** * Enable or disable installments feature */ enableInstallments: boolean; /** * Maximum number of installments to display (for UI clarity) */ maxVisibleInstallments: number; /** * the language of the plugin. supported languages are Arabic ("ar") and English ("en") */ locale?: string; /** * Enable or disable border around the timeline */ border: boolean; /** * Timeline display style: 'default' for circular timeline, 'simple' for modern dots with lines */ timelineStyle: TimelineStyle; /** * Footer message for simple timeline style */ footerMessage?: string; /** * Enable debug mode for additional console logs * @default false */ debug: boolean; /** * Number of decimal places for amount formatting * @default 2 * @minimum 0 * @maximum 6 */ decimalPlaces: number; labelFormat: LabelFormat; startDate?: string; intervalMonths: number; /** * Translation function to handle localization * @private */ private t; /** * Lifecycle method that is called once when the component is first created */ componentWillLoad(): Promise; /** * Lifecycle method to update translations when locale changes */ updateLocale(newValue: string): Promise; /** * Generate simple label for installment (1-based indexing) */ private generateSimpleLabel; /** * Get installment data as parsed object or generate it dynamically */ private get installments(); /** * Generate installment data based on amount and installmentsCount */ private generateInstallments; /** * Format amount to display */ private formatAmount; /** * Render an installment step (default circular style) */ private renderInstallmentStep; /** * Render a modern timeline step with new dot style and connecting lines */ private renderModernTimelineStep; /** * Render a connector between steps (default style) */ private renderConnector; /** * Render the modern timeline style with new dots and connecting lines * Updated to show dotted line when there are hidden installments */ private renderModernTimeline; /** * Render the default timeline style with circles and connectors */ private renderDefaultTimeline; render(): any; }