import BaseDataSource from 'devextreme/data/data_source';
import { DataStore } from '@sereny/datastore';
import { DataSourceOptions } from '../interface';
export declare class DataSource extends BaseDataSource {
    private options;
    constructor(options: DataSourceOptions);
    dataStore(): DataStore<any>;
    findAll(options?: any): Promise<any[]>;
    byKey(key: any): Promise<any>;
    save(data: any): Promise<any>;
    remove(key: any): Promise<void>;
    restore(key: any): Promise<void>;
    upload(data: FormData): Promise<any>;
    link(data: any): void;
    toOptions(): {
        paginate: boolean;
        pageSize: number;
        store: import("devextreme/data").Store<any, any>;
    };
}
