UNPKG

@simplito/privmx-webendpoint

Version:

PrivMX Web Endpoint library

21 lines (18 loc) 841 B
/*! 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. */ import { UserWithPubKey } from "../Types"; import { BaseNative } from "./BaseNative"; export declare class EventApiNative extends BaseNative { newApi(connectionPtr: number): Promise<number>; deleteApi(ptr: number): Promise<void>; create(ptr: number, args: []): Promise<void>; emitEvent(ptr: number, args: [string, string, Uint8Array, UserWithPubKey[]]): Promise<void>; subscribeForCustomEvents(ptr: number, args: [string, string]): Promise<void>; unsubscribeFromCustomEvents(ptr: number, args: [string, string]): Promise<void>; }