1 | import { Event, Emitter } from '../../common/event';
|
2 | import { Disposable, DisposableCollection } from '../../common/disposable';
|
3 |
|
4 |
|
5 |
|
6 | export interface SearchBoxDebounceOptions {
|
7 | |
8 |
|
9 |
|
10 | readonly delay: number;
|
11 | }
|
12 | export declare namespace SearchBoxDebounceOptions {
|
13 | |
14 |
|
15 |
|
16 | const DEFAULT: SearchBoxDebounceOptions;
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 | export declare class SearchBoxDebounce implements Disposable {
|
22 | protected readonly options: SearchBoxDebounceOptions;
|
23 | protected readonly disposables: DisposableCollection;
|
24 | protected readonly emitter: Emitter<string | undefined>;
|
25 | protected readonly handler: () => void;
|
26 | protected state: string | undefined;
|
27 | constructor(options: SearchBoxDebounceOptions);
|
28 | append(input: string | undefined): string | undefined;
|
29 | get onChanged(): Event<string | undefined>;
|
30 | dispose(): void;
|
31 | protected fireChanged(value: string | undefined): void;
|
32 | protected reset(): void;
|
33 | }
|
34 | //# sourceMappingURL=search-box-debounce.d.ts.map |
\ | No newline at end of file |