import isPlainObject from 'lodash/isPlainObject';
export function setRemoteInstance(instance, fetchData) {
    var _a;
    // @ts-ignore
    if (isPlainObject((_a = instance === null || instance === void 0 ? void 0 : instance.remoteOperation) === null || _a === void 0 ? void 0 : _a.current)) {
        // @ts-ignore
        instance.remoteOperation.current.fetchData = fetchData;
    }
}
