/** * Copyright (c) 2020, 2026 Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ export declare class CustomMutex { protected _locked: boolean; protected _queue: any; /** * Creates a new Mutex instance. */ constructor(); /** * Acquires the mutex. * @returns {Promise} A promise that resolves when the mutex is acquired. */ acquire(): Promise; /** * Releases the mutex. */ release(): void; }