/*!
PrivMX Web Endpoint.
Copyright © 2024 Simplito sp. z o.o.

This file is part of the PrivMX Platform (https://privmx.dev).
This software is Licensed under the PrivMX Free License.

See the License for the specific language governing permissions and
limitations under the License.
*/
export declare class Api {
    lib: any;
    private promises;
    private taskIdGenerator;
    constructor(lib: any);
    runAsync<T>(func: (taskId: number) => void): Promise<T>;
    private resolveResult;
    private generateId;
    private setResultsCallback;
}
