import { SearchandiserConfig } from '../searchandiser'; import { LabeledOption, SelectOption } from '../tags/select/gb-select'; import { FluxCapacitor, Results } from 'groupby-api'; export declare const COLLECTIONS_UPDATED_EVENT: string; export declare type CancelablePromise = Promise & { cancelled: boolean; }; export declare class Collections { private flux; private config; _config: { items: SelectOption[]; }; fetchCounts: boolean; counts: any; inProgress: CancelablePromise; collections: string[]; constructor(flux: FluxCapacitor, config: SearchandiserConfig); init(): void; updateCollectionCounts(query?: string): Promise; extractCounts(res: any[]): any; updateSelectedCollectionCount(res: Results): void; isSelected(collection: string): boolean; isLabeled(items: SelectOption[]): items is LabeledOption[]; readonly selectedCollection: any; }