export async function mutationLock(mode, bypass, config, mutation) {
    if (!bypass && 'locks' in navigator) {
        return navigator.locks.request(`_sqlocal_mutation_(${config.databasePath})`, { mode }, mutation);
    }
    else {
        return mutation();
    }
}
//# sourceMappingURL=mutation-lock.js.map