import { IPersonaProps } from "office-ui-fabric-react/lib/Persona"; import { FabreactorResultPage, FabreactorItemProperties, FabreactorLookup } from "../../"; import { FabreactorField, FabreactorFilter, FabreactorOrderBy } from "../../utils"; export default class FabreactorItemDomainStore { private itemProps; items?: any[] | null; currentPage: number; totalPages: number; filters: FabreactorFilter[]; orderBy?: FabreactorOrderBy | null; constructor(itemProps: FabreactorItemProperties); init: () => void; lookupToPersonaProps: (lookup: FabreactorLookup) => IPersonaProps; onOrderBy: (fieldKey: string, descending: boolean) => void; deleteItem: (item: any) => void; private compare; updateItem: (item: any) => void; updateItemField: (item: any, field: FabreactorField, value: any) => void; getFilterValues: (fieldKey: string) => { key: any; }[]; clearFilter: (fieldKey: string) => void; addFilter: (filter: FabreactorFilter) => void; insertItem: (item: any) => void; setItems: (page: FabreactorResultPage) => void; addItems: (page: FabreactorResultPage) => void; private setPaging; readonly hasItems: boolean | null | undefined; readonly hasNextPage: boolean; readonly nextPage: number | null; }