import DxCustomStore from "devextreme/data/custom_store"; interface Options { key?: string|Array, errorHandler?: (e: Error) => void, loadUrl?: string, loadParams?: Object, loadMethod?: string, updateUrl?: string, updateMethod?: string, insertUrl?: string, insertMethod?: string, deleteUrl?: string, deleteMethod?: string, loadMode?: "processed" | "raw", cacheRawData?: boolean, onBeforeSend?: (operation: string, ajaxSettings: { cache?: boolean; contentType?: any; data?: any; dataType?: string; headers?: { [key: string]: any; }; method?: string; password?: string; timeout?: number; url?: string; username?: string; xhrFields?: { [key: string]: any; }; }) => void | PromiseLike| any, onAjaxError?: (e: { xhr: XMLHttpRequest, error: string | Error }) => void onLoading?: (loadOptions: any) => void; onLoaded?: (result: Array) => void; onInserting?: (values: any) => void; onInserted?: (values: any, key: any) => void; onUpdating?: (key: any, values: any) => void; onUpdated?: (key: any, values: any) => void; onRemoving?: (key: any) => void; onRemoved?: (key: any) => void; onModifying?: Function; onModified?: Function; onPush?: (changes: Array) => void; } declare class CustomStore extends DxCustomStore { byKey(key: any | string | number): any; } export function createStore(options: Options): CustomStore;