import { CollectionViewer } from '@angular/cdk/collections'; import { Observable } from 'rxjs'; import { MigImageData } from '../interfaces/mig-image-data.interface'; import { Page } from '../interfaces/page.interface'; import { DatastoreAdapterServiceBase } from './datastore-adapter.service.base'; /** * Class to get a list of images data to display in a mat-image-grid. * This class converts the raw data received fom a datastore adapter to a format * required by mat-image-grid. */ export declare class MigDataSource { private readonly emptyPage; private datastore; /** Stream emitting data to render. */ private readonly _data; private collectionViewerSubscription; /** * @param datastore - datastore adapter for datastore to use */ constructor(datastore: DatastoreAdapterServiceBase); /** * Connects a collection viewer (such as a mat-image-grid) to this data source. * The viewChange observable of the CollectionViewer should return no images, when * the 'end' property of the ListRange is less than 0. * @param collectionViewer - The component that exposes a view over the data provided by this data source. * @returns Observable that emits a new value when the data changes. */ connect(collectionViewer: CollectionViewer): Observable>; /** * Disconnects a collection viewer (such as a mat-image-grid) from this data source. * @param collectionViewer - The component that exposes a view over the data provided by this data source. */ disconnect(collectionViewer: CollectionViewer): void; }