1 | import { HasGuid } from './guid';
|
2 | import { Option } from './platform-utils';
|
3 | import { Dict, Stack } from '@glimmer/interfaces';
|
4 | export interface Set<T> {
|
5 | add(value: T): Set<T>;
|
6 | delete(value: T): void;
|
7 | }
|
8 | export declare function dict<T = unknown>(): Dict<T>;
|
9 | export declare function isDict<T>(u: T): u is Dict & T;
|
10 | export declare function isObject<T>(u: T): u is object & T;
|
11 | export declare type SetMember = HasGuid | string;
|
12 | export declare class DictSet<T extends SetMember> implements Set<T> {
|
13 | private dict;
|
14 | constructor();
|
15 | add(obj: T): Set<T>;
|
16 | delete(obj: T): void;
|
17 | }
|
18 | export declare class StackImpl<T> implements Stack<T> {
|
19 | private stack;
|
20 | current: Option<T>;
|
21 | get size(): number;
|
22 | push(item: T): void;
|
23 | pop(): Option<T>;
|
24 | nth(from: number): Option<T>;
|
25 | isEmpty(): boolean;
|
26 | toArray(): T[];
|
27 | }
|
28 |
|
\ | No newline at end of file |