1 | export type preMessageFn = (message: string, type: 'warning' | 'note') => string | null | undefined | number;
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export declare const preMessage: (fn: preMessageFn) => void;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function warning(valid: boolean, message: string): void;
|
19 |
|
20 | export declare function note(valid: boolean, message: string): void;
|
21 | export declare function resetWarned(): void;
|
22 | export declare function call(method: (valid: boolean, message: string) => void, valid: boolean, message: string): void;
|
23 |
|
24 | export declare function warningOnce(valid: boolean, message: string): void;
|
25 | export declare namespace warningOnce {
|
26 | var preMessage: (fn: preMessageFn) => void;
|
27 | var resetWarned: typeof import("./warning").resetWarned;
|
28 | var noteOnce: typeof import("./warning").noteOnce;
|
29 | }
|
30 |
|
31 | export declare function noteOnce(valid: boolean, message: string): void;
|
32 | export default warningOnce;
|