UNPKG

619 BTypeScriptView Raw
1import type { IObject } from '../type';
2interface IFormatMoney {
3 thousand?: string;
4 decimal?: string;
5}
6interface IVars {
7 value: number;
8 floatLength: number;
9 formatMoney?: IFormatMoney;
10}
11declare class ChildrenPlugin {
12 static key: string;
13 static className: string;
14 start?: IVars;
15 startAt?: IObject;
16 target?: HTMLElement;
17 vars: IVars;
18 key: string;
19 constructor(vars: IVars, key: string);
20 getAnimStart: () => IVars | undefined;
21 toMoney: (v: string, _opts: IFormatMoney) => string;
22 render: (ratio: number) => string | number;
23}
24export default ChildrenPlugin;