You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
713 B
17 lines
713 B
import * as React from 'react';
|
|
export declare type valueType = number | string;
|
|
export declare type countdownValueType = valueType | string;
|
|
export declare type Formatter = false | 'number' | 'countdown' | ((value: valueType, config?: FormatConfig) => React.ReactNode);
|
|
export interface FormatConfig {
|
|
formatter?: Formatter;
|
|
decimalSeparator?: string;
|
|
groupSeparator?: string;
|
|
precision?: number;
|
|
prefixCls?: string;
|
|
}
|
|
export interface CountdownFormatConfig extends FormatConfig {
|
|
format?: string;
|
|
}
|
|
export declare function formatTimeStr(duration: number, format: string): string;
|
|
export declare function formatCountdown(value: countdownValueType, config: CountdownFormatConfig): string;
|