@simplito/privmx-webendpoint
Version:
PrivMX Web Endpoint library
22 lines (19 loc) • 941 B
TypeScript
/*!
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 { EventsEventSelectorType, 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, UserWithPubKey[], string, Uint8Array]): Promise<void>;
subscribeFor(ptr: number, args: [string[]]): Promise<string[]>;
unsubscribeFrom(ptr: number, args: [string[]]): Promise<void>;
buildSubscriptionQuery(ptr: number, args: [string, EventsEventSelectorType, string]): Promise<string>;
}