export class Container implements Iterable { children: T[]; [Symbol.iterator](): IteratorObject; item(index: number, value?: T): T | undefined; add(item: T): this; /** @deprecated */ addAt?(index: number, ...items: T[]): this; addAll(list: U[] | Container): this; concat(list: U[] | Container): U[]; remove(item: T): T | undefined; /** @deprecated */ removeAt?(index: number): T | undefined; removeAll(list: U[] | Container): U[]; retainAs(list: T[]): this; each(predicate: IteratorPredicate, options?: ContainerEachOptions): this; every(predicate: IteratorPredicate, options?: ContainerRangeOptions): boolean; removeIf(predicate: IteratorPredicate, options?: ContainerRemoveIfOptions | IteratorPredicate): T[]; find(predicate: IteratorPredicate, options?: ContainerFindOptions): U | undefined; takeWhile(predicate: IteratorPredicate, options?: ContainerEachOptions): T[]; dropWhile(predicate: IteratorPredicate, options?: ContainerEachOptions): T[]; includes(item: U, cascade: boolean): boolean; includes(item: U, options?: ContainerIncludesOptions): boolean; cascade(predicate?: IteratorPredicate, options?: ContainerCascadeOptions | IteratorPredicate): U[]; map(predicate: IteratorPredicate): U[]; /** @deprecated */ sortBy?(...attrs: [...string[], boolean]): this; contains(...items: T[]): boolean; clear(): this; /** @deprecated */ iterator?(): ListIterator; isEmpty(): boolean; size(): number; toArray(): T[]; constructor(children?: T[]); } /** @deprecated */ export class ArrayIterator { readonly children: T[]; next(): T | undefined; hasNext(): boolean; remove(): void; forEachRemaining(predicate: (item: T) => void): void; constructor(children: T[]); } export class Iterator implements IteratorObject { readonly children: T[]; readonly length: number; [Symbol.iterator](): IteratorObject; next(): IteratorResult; constructor(children: T[]); } /** @deprecated */ export class ListIterator extends ArrayIterator { add(item: T): void; set(item: T): void; nextIndex(): number; hasPrevious(): boolean; previous(): T | undefined; previousIndex(): number; } /** @deprecated */ export class Pattern { found: number; matcher(input: string): void; find(start?: number): boolean; lookingAt(): boolean; matches(): boolean; start(index?: number): number; end(index?: number): number; group(index?: number | string): string | undefined; groups(start?: number, end?: number): string[]; groupCount(): number; map(predicate: IteratorPredicate, start?: number, end?: number): T[]; replaceAll(replaceWith: string | PatternGroupPredicate, replaceCount?: number): string; replaceFirst(replaceWith: string | PatternGroupPredicate): string; usePattern(expression: string | RegExp, flags?: string): void; pattern(): string; reset(input?: string): void; toMatchResult(): RegExpExecArray | null; constructor(expression: string | RegExp, flags?: string); }