import type { Cache } from './cache'; import type { CacheTypeDef, ListType, ValidLists, ListFilters } from './types'; export declare class ListCollection> { #private; constructor({ parentID, allLists, when, cache, name, }: { name: ValidLists; parentID?: string; allLists?: boolean; when?: ListFilters; cache: Cache; }); append(...records: ListType[]): void; prepend(...records: ListType[]): void; toggle(where: 'first' | 'last', ...records: ListType[]): void; when(filter: ListFilters): ListCollection; remove(...records: ListType[]): void; [Symbol.iterator](): Generator; }