/** * T-066: 积分明细组件 * 展示积分流水列表(无限滚动分页) * 每项含:业务类型图标 + 描述 + 积分变动 + 时间 + 状态标签 */ import { BaseComponent } from '../base/BaseComponent'; /** 积分流水状态 */ export type PointsStatus = 'pending' | 'active' | 'used' | 'expired'; /** 积分流水项 */ export interface PointsRecord { /** 流水 ID */ id: string; /** 业务类型 */ bizType: string; /** 业务类型图标 */ bizIcon: string; /** 描述 */ description: string; /** 积分变动值(正数为收入,负数为支出) */ amount: number; /** 时间戳 */ timestamp: string | number | Date; /** 状态 */ status: PointsStatus; } /** 加载更多回调 */ export type LoadMoreFn = (page: number) => Promise; export declare class PointsDetail extends BaseComponent { private records; private currentPage; private loading; private hasMore; private loadMoreFn; private scrollObserver; private initialized; /** 设置初始数据 */ setData(records: PointsRecord[] | null | undefined): void; /** 设置加载更多回调 */ setLoadMore(fn: LoadMoreFn): void; disconnectedCallback(): void; private destroyObserver; private handleLoadMore; private updateLoadingState; /** 获取状态标签的 i18n key */ private getStatusLabel; /** 获取状态对应的 CSS 类 */ private getStatusClass; protected styles(): string; protected render(): string; protected afterRender(): void; } /** 注册自定义元素 */ export declare function registerPointsDetail(): void; //# sourceMappingURL=PointsDetail.d.ts.map