import { add, edit, get, list } from './mocks';
export class Api {
    static sendListReq() {
        return new Promise((resolve) => {
            resolve(list());
        });
    }
    static sendAddReq(instance) {
        return new Promise((resolve) => {
            resolve(add());
        });
    }
    static sendDeleteReq(instance) {
        return new Promise((resolve) => {
            resolve(200);
        });
    }
    static sendEditReq(instance) {
        return new Promise((resolve) => {
            resolve(edit());
        });
    }
    static sendGetReq(id) {
        return new Promise((resolve) => {
            resolve(get(id));
        });
    }
}
//# sourceMappingURL=Api.js.map