import { DataSource, DataSourceOptions, DataSourcePayload, RemoteOperations } from './data-source.types';
import { BaseDataSource } from './BaseDataSource';
export declare class LocalDataSource extends BaseDataSource {
    private worker;
    data: any[];
    filtered: any[];
    remoteOperations: RemoteOperations;
    constructor(source?: any[] | DataSource);
    /**
     * Entry point to getting data
     */
    fetchData(options: DataSourceOptions): Promise<DataSourcePayload>;
    /**
     * Loads data locally by default. Can be overridden by user configuration to load data from a remote source
     */
    load(options: DataSourceOptions): Promise<DataSourcePayload>;
    /**
     * Paginate the complete data set
     */
    paginate(options: DataSourceOptions, data?: Promise<DataSourcePayload>): Promise<DataSourcePayload>;
    /**
     * Sorting and filtering of a master set
     */
    sort(options: DataSourceOptions, data?: Promise<DataSourcePayload>): Promise<DataSourcePayload>;
    private asyncSort;
    private localLoad;
    private delayStart;
    private connect;
    private disconnect;
}
