import { IApp } from "../app/IApp";
/**
 * SmartERP base API
 */
export declare class BaseApi<T extends IApp = IApp> {
    protected app: T;
    protected api: import("@etsoo/restclient").IApi<any>;
    /**
     * API Last error
     */
    get lastError(): import("@etsoo/restclient").ApiDataError<any> | undefined;
    /**
     * Constructor
     * @param app Application
     * @param api API
     */
    constructor(app: T, api?: import("@etsoo/restclient").IApi<any>);
}
