import { MonoTypeOperatorFunction, Observable } from 'rxjs'; import { ID, IDS, ItemPredicate } from './types'; export declare function find(collection: T[], idsOrPredicate: IDS | ItemPredicate, idKey: string): any[]; export declare function distinctUntilArrayItemChanged(): MonoTypeOperatorFunction; /** * Find items in a collection * * @example * * selectEntity(1, 'comments').pipe( * arrayFind(comment => comment.text = 'text') * ) */ export declare function arrayFind(ids: ItemPredicate, idKey?: never): (source: Observable) => Observable; /** * @example * * selectEntity(1, 'comments').pipe( * arrayFind(3) * ) */ export declare function arrayFind(ids: ID, idKey?: string): (source: Observable) => Observable; /** * @example * * selectEntity(1, 'comments').pipe( * arrayFind([1, 2, 3]) * ) */ export declare function arrayFind(ids: ID[], idKey?: string): (source: Observable) => Observable;