import { $changes, $childType, $decoder, $deleteByIndex, $encoder, $filter, $getByIndex, $onEncodeEnd, $refId } from "../symbols.js"; import { ChangeTree, type IRef } from "../../encoder/ChangeTree.js"; import { Collection } from "../HelperTypes.js"; import type { StateView } from "../../encoder/StateView.js"; import type { Schema } from "../../Schema.js"; type K = number; export declare class CollectionSchema implements Collection, IRef { [$changes]: ChangeTree; [$refId]?: number; protected [$childType]: string | typeof Schema; protected $items: Map; protected $indexes: Map; protected deletedItems: { [field: string]: V; }; protected $refId: number; static [$encoder]: import("../../encoder/EncodeOperation.js").EncodeOperation; static [$decoder]: import("../../decoder/DecodeOperation.js").DecodeOperation; /** * Determine if a property must be filtered. * - If returns false, the property is NOT going to be encoded. * - If returns true, the property is going to be encoded. * * Encoding with "filters" happens in two steps: * - First, the encoder iterates over all "not owned" properties and encodes them. * - Then, the encoder iterates over all "owned" properties per instance and encodes them. */ static [$filter](ref: CollectionSchema, index: number, view: StateView): boolean; static is(type: any): boolean; constructor(initialValues?: Array); add(value: V): number; at(index: number): V | undefined; entries(): MapIterator<[number, V]>; delete(item: V): boolean; clear(): void; has(value: V): boolean; forEach(callbackfn: (value: V, key: K, collection: CollectionSchema) => void): void; values(): MapIterator; get size(): number; /** Iterator */ [Symbol.iterator](): IterableIterator; protected setIndex(index: number, key: number): void; protected getIndex(index: number): number; [$getByIndex](index: number): any; [$deleteByIndex](index: number): void; protected [$onEncodeEnd](): void; toArray(): V[]; toJSON(): V[]; clone(isDecoding?: boolean): CollectionSchema; } export {};