import { TypeInfo } from "./Reflection.js"; import { Option } from "./Option.js"; import { int32 } from "./Int32.js"; import { IMap, IEnumerator, IComparer } from "./Util.js"; import { FSharpList } from "./List.js"; import { FSharpRef, Record } from "./Types.js"; export declare class MapTreeLeaf$2 { readonly v: Value; readonly k: Key; constructor(k: Key, v: Value); } export declare function MapTreeLeaf$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo; export declare function MapTreeLeaf$2_$ctor_5BDDA1(k: Key, v: Value): MapTreeLeaf$2; export declare function MapTreeLeaf$2__get_Key(_: MapTreeLeaf$2): Key; export declare function MapTreeLeaf$2__get_Value(_: MapTreeLeaf$2): Value; export declare class MapTreeNode$2 extends MapTreeLeaf$2 { readonly right: Option>; readonly left: Option>; readonly h: int32; constructor(k: Key, v: Value, left: Option>, right: Option>, h: int32); } export declare function MapTreeNode$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo; export declare function MapTreeNode$2_$ctor_Z39DE9543(k: Key, v: Value, left: Option>, right: Option>, h: int32): MapTreeNode$2; export declare function MapTreeNode$2__get_Left(_: MapTreeNode$2): Option>; export declare function MapTreeNode$2__get_Right(_: MapTreeNode$2): Option>; export declare function MapTreeNode$2__get_Height(_: MapTreeNode$2): int32; export declare function MapTreeModule_empty(): Option>; export declare function MapTreeModule_sizeAux(acc_mut: int32, m_mut: Option>): int32; export declare function MapTreeModule_size<$a, $b>(x: Option>): int32; export declare function MapTreeModule_mk(l: Option>, k: Key, v: Value, r: Option>): Option>; export declare function MapTreeModule_rebalance(t1: Option>, k: Key, v: Value, t2: Option>): Option>; export declare function MapTreeModule_add(comparer: IComparer, k: Key, v: Value, m: Option>): Option>; export declare function MapTreeModule_tryFind(comparer_mut: IComparer, k_mut: Key, m_mut: Option>): Option; export declare function MapTreeModule_find(comparer: IComparer, k: Key, m: Option>): Value; export declare function MapTreeModule_partition1(comparer: IComparer, f: any, k: Key, v: $a, acc1: Option>, acc2: Option>): [Option>, Option>]; export declare function MapTreeModule_partitionAux(comparer_mut: IComparer, f_mut: any, m_mut: Option>, acc__mut: Option>, acc__1_mut: Option>): [Option>, Option>]; export declare function MapTreeModule_partition(comparer: IComparer, f: ((arg0: Key, arg1: $a) => boolean), m: Option>): [Option>, Option>]; export declare function MapTreeModule_filter1(comparer: IComparer, f: any, k: Key, v: $a, acc: Option>): Option>; export declare function MapTreeModule_filterAux(comparer_mut: IComparer, f_mut: any, m_mut: Option>, acc_mut: Option>): Option>; export declare function MapTreeModule_filter(comparer: IComparer, f: ((arg0: Key, arg1: $a) => boolean), m: Option>): Option>; export declare function MapTreeModule_spliceOutSuccessor(m: Option>): [Key, Value, Option>]; export declare function MapTreeModule_remove(comparer: IComparer, k: Key, m: Option>): Option>; export declare function MapTreeModule_change(comparer: IComparer, k: Key, u: ((arg0: Option) => Option), m: Option>): Option>; export declare function MapTreeModule_mem(comparer_mut: IComparer, k_mut: Key, m_mut: Option>): boolean; export declare function MapTreeModule_iterOpt(f_mut: any, m_mut: Option>): void; export declare function MapTreeModule_iter<$a, $b>(f: ((arg0: $a, arg1: $b) => void), m: Option>): void; export declare function MapTreeModule_tryPickOpt(f_mut: any, m_mut: Option>): Option<$a>; export declare function MapTreeModule_tryPick<$a, $b, $c>(f: ((arg0: $a, arg1: $b) => Option<$c>), m: Option>): Option<$c>; export declare function MapTreeModule_existsOpt(f_mut: any, m_mut: Option>): boolean; export declare function MapTreeModule_exists<$a, $b>(f: ((arg0: $a, arg1: $b) => boolean), m: Option>): boolean; export declare function MapTreeModule_forallOpt(f_mut: any, m_mut: Option>): boolean; export declare function MapTreeModule_forall<$a, $b>(f: ((arg0: $a, arg1: $b) => boolean), m: Option>): boolean; export declare function MapTreeModule_map(f: ((arg0: Value) => Result), m: Option>): Option>; export declare function MapTreeModule_mapiOpt(f: any, m: Option>): Option>; export declare function MapTreeModule_mapi<$a, $b, $c>(f: ((arg0: $a, arg1: $b) => $c), m: Option>): Option>; export declare function MapTreeModule_foldBackOpt(f_mut: any, m_mut: Option>, x_mut: $a): $a; export declare function MapTreeModule_foldBack<$a, $b, $c>(f: ((arg0: $a, arg1: $b, arg2: $c) => $c), m: Option>, x: $c): $c; export declare function MapTreeModule_foldOpt<$a, Key, Value>(f_mut: any, x_mut: $a, m_mut: Option>): $a; export declare function MapTreeModule_fold<$a, $b, $c>(f: ((arg0: $a, arg1: $b, arg2: $c) => $a), x: $a, m: Option>): $a; export declare function MapTreeModule_foldSectionOpt(comparer: IComparer, lo: Key, hi: Key, f: any, m: Option>, x: a): a; export declare function MapTreeModule_foldSection(comparer: IComparer, lo: Key, hi: Key, f: ((arg0: Key, arg1: $a, arg2: $b) => $b), m: Option>, x: $b): $b; export declare function MapTreeModule_toList(m: Option>): FSharpList<[Key, Value]>; export declare function MapTreeModule_copyToArray<$a, $b>(m: Option>, arr: [$a, $b][], i: int32): void; export declare function MapTreeModule_toArray<$a, $b>(m: Option>): [$a, $b][]; export declare function MapTreeModule_ofList<$a, $b>(comparer: IComparer<$a>, l: FSharpList<[$a, $b]>): Option>; export declare function MapTreeModule_mkFromEnumerator<$a, $b>(comparer_mut: IComparer<$a>, acc_mut: Option>, e_mut: IEnumerator<[$a, $b]>): Option>; export declare function MapTreeModule_ofArray(comparer: IComparer, arr: [Key, Value][]): Option>; export declare function MapTreeModule_ofSeq(comparer: IComparer, c: Iterable<[Key, Value]>): Option>; export declare class MapTreeModule_MapIterator$2 extends Record { stack: FSharpList>>; started: boolean; constructor(stack: FSharpList>>, started: boolean); } export declare function MapTreeModule_MapIterator$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo; export declare function MapTreeModule_collapseLHS(stack_mut: FSharpList>>): FSharpList>>; export declare function MapTreeModule_mkIterator<$a, $b>(m: Option>): MapTreeModule_MapIterator$2<$a, $b>; export declare function MapTreeModule_notStarted<$a>(): $a; export declare function MapTreeModule_alreadyFinished<$a>(): $a; export declare function MapTreeModule_current(i: MapTreeModule_MapIterator$2): [Key, Value]; export declare function MapTreeModule_moveNext(i: MapTreeModule_MapIterator$2): boolean; export declare function MapTreeModule_mkIEnumerator(m: Option>): IEnumerator<[a, b]>; export declare function MapTreeModule_toSeq<$a, $b>(s: Option>): Iterable<[$a, $b]>; export declare function MapTreeModule_leftmost(m_mut: Option>): [Key, Value]; export declare function MapTreeModule_rightmost(m_mut: Option>): [Key, Value]; export declare class FSharpMap implements IMap, Iterable<[Key, Value]>, Iterable<[Key, Value]> { readonly tree: Option>; readonly comparer: IComparer; constructor(comparer: IComparer, tree: Option>); GetHashCode(): int32; Equals(that: any): boolean; toString(): string; get [Symbol.toStringTag](): string; toJSON(): any; GetEnumerator(): IEnumerator<[Key, Value]>; [Symbol.iterator](): Iterator<[Key, Value]>; "System.Collections.IEnumerable.GetEnumerator"(): IEnumerator; CompareTo(obj: any): int32; "System.Collections.Generic.ICollection`1.Add2B595"(x: [Key, Value]): void; "System.Collections.Generic.ICollection`1.Clear"(): void; "System.Collections.Generic.ICollection`1.Remove2B595"(x: [Key, Value]): boolean; "System.Collections.Generic.ICollection`1.Contains2B595"(x: [Key, Value]): boolean; "System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(arr: [Key, Value][], i: int32): void; "System.Collections.Generic.ICollection`1.get_IsReadOnly"(): boolean; "System.Collections.Generic.ICollection`1.get_Count"(): int32; "System.Collections.Generic.IReadOnlyCollection`1.get_Count"(): int32; get size(): int32; clear(): void; delete(_arg: Key): boolean; entries(): Iterable<[Key, Value]>; get(k: Key): Value; has(k: Key): boolean; keys(): Iterable; set(k: Key, v: Value): IMap; values(): Iterable; forEach(f: ((arg0: Value, arg1: Key, arg2: IMap) => void), thisArg?: Option): void; } export declare function FSharpMap_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo; export declare function FSharpMap_$ctor(comparer: IComparer, tree: Option>): FSharpMap; export declare function FSharpMap_Empty(comparer: IComparer): FSharpMap; export declare function FSharpMap__get_Comparer(m: FSharpMap): IComparer; export declare function FSharpMap__get_Tree(m: FSharpMap): Option>; export declare function FSharpMap__Add(m: FSharpMap, key: Key, value: Value): FSharpMap; export declare function FSharpMap__Change(m: FSharpMap, key: Key, f: ((arg0: Option) => Option)): FSharpMap; export declare function FSharpMap__get_IsEmpty(m: FSharpMap): boolean; export declare function FSharpMap__get_Item(m: FSharpMap, key: Key): Value; export declare function FSharpMap__TryPick(m: FSharpMap, f: ((arg0: Key, arg1: Value) => Option<$a>)): Option<$a>; export declare function FSharpMap__Exists(m: FSharpMap, predicate: ((arg0: Key, arg1: Value) => boolean)): boolean; export declare function FSharpMap__Filter(m: FSharpMap, predicate: ((arg0: Key, arg1: Value) => boolean)): FSharpMap; export declare function FSharpMap__ForAll(m: FSharpMap, predicate: ((arg0: Key, arg1: Value) => boolean)): boolean; export declare function FSharpMap__Fold(m: FSharpMap, f: ((arg0: Key, arg1: Value, arg2: $a) => $a), acc: $a): $a; export declare function FSharpMap__FoldSection(m: FSharpMap, lo: Key, hi: Key, f: ((arg0: Key, arg1: Value, arg2: z) => z), acc: z): z; export declare function FSharpMap__Iterate(m: FSharpMap, f: ((arg0: Key, arg1: Value) => void)): void; export declare function FSharpMap__MapRange(m: FSharpMap, f: ((arg0: Value) => Result)): FSharpMap; export declare function FSharpMap__Map(m: FSharpMap, f: ((arg0: Key, arg1: Value) => b)): FSharpMap; export declare function FSharpMap__Partition(m: FSharpMap, predicate: ((arg0: Key, arg1: Value) => boolean)): [FSharpMap, FSharpMap]; export declare function FSharpMap__get_Count(m: FSharpMap): int32; export declare function FSharpMap__ContainsKey(m: FSharpMap, key: Key): boolean; export declare function FSharpMap__Remove(m: FSharpMap, key: Key): FSharpMap; export declare function FSharpMap__TryGetValue(_: FSharpMap, key: Key, value: FSharpRef): boolean; export declare function FSharpMap__get_Keys(_: FSharpMap): Iterable; export declare function FSharpMap__get_Values(_: FSharpMap): Iterable; export declare function FSharpMap__get_MinKeyValue(m: FSharpMap): [Key, Value]; export declare function FSharpMap__get_MaxKeyValue(m: FSharpMap): [Key, Value]; export declare function FSharpMap__TryFind(m: FSharpMap, key: Key): Option; export declare function FSharpMap__ToList(m: FSharpMap): FSharpList<[Key, Value]>; export declare function FSharpMap__ToArray(m: FSharpMap): [Key, Value][]; export declare function FSharpMap__ComputeHashCode(this$: FSharpMap): int32; export declare function isEmpty<$a, $b>(table: FSharpMap<$a, $b>): boolean; export declare function add<$a, $b>(key: $a, value: $b, table: FSharpMap<$a, $b>): FSharpMap<$a, $b>; export declare function change<$a, $b>(key: $a, f: ((arg0: Option<$b>) => Option<$b>), table: FSharpMap<$a, $b>): FSharpMap<$a, $b>; export declare function find<$a, $b>(key: $a, table: FSharpMap<$a, $b>): $b; export declare function tryFind<$a, $b>(key: $a, table: FSharpMap<$a, $b>): Option<$b>; export declare function remove<$a, $b>(key: $a, table: FSharpMap<$a, $b>): FSharpMap<$a, $b>; export declare function containsKey<$a, $b>(key: $a, table: FSharpMap<$a, $b>): boolean; export declare function iterate<$a, $b>(action: ((arg0: $a, arg1: $b) => void), table: FSharpMap<$a, $b>): void; export declare function tryPick<$a, $b, $c>(chooser: ((arg0: $a, arg1: $b) => Option<$c>), table: FSharpMap<$a, $b>): Option<$c>; export declare function pick<$a, $b, $c>(chooser: ((arg0: $a, arg1: $b) => Option<$c>), table: FSharpMap<$a, $b>): $c; export declare function exists<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): boolean; export declare function filter<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): FSharpMap<$a, $b>; export declare function partition<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): [FSharpMap<$a, $b>, FSharpMap<$a, $b>]; export declare function forAll<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): boolean; export declare function map<$a, $b, $c>(mapping: ((arg0: $a, arg1: $b) => $c), table: FSharpMap<$a, $b>): FSharpMap<$a, $c>; export declare function fold(folder: ((arg0: State, arg1: Key, arg2: T) => State), state: State, table: FSharpMap): State; export declare function foldBack(folder: ((arg0: Key, arg1: T, arg2: State) => State), table: FSharpMap, state: State): State; export declare function toSeq<$a, $b>(table: FSharpMap<$a, $b>): Iterable<[$a, $b]>; export declare function findKey<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): $a; export declare function tryFindKey<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): Option<$a>; export declare function ofList(elements: FSharpList<[Key, Value]>, comparer: IComparer): FSharpMap; export declare function ofSeq(elements: Iterable<[T, $a]>, comparer: IComparer): FSharpMap; export declare function ofArray(elements: [Key, Value][], comparer: IComparer): FSharpMap; export declare function toList<$a, $b>(table: FSharpMap<$a, $b>): FSharpList<[$a, $b]>; export declare function toArray<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b][]; export declare function keys(table: FSharpMap): Iterable; export declare function values(table: FSharpMap): Iterable; export declare function minKeyValue<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b]; export declare function maxKeyValue<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b]; export declare function empty(comparer: IComparer): FSharpMap; export declare function count<$a, $b>(table: FSharpMap<$a, $b>): int32;