mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-25 13:24:29 +00:00
13 lines
858 B
TypeScript
13 lines
858 B
TypeScript
import {ChatEvent, ChatResponse} from "@simplex-chat/types";
|
|
|
|
// These functions are defined in CPP add-on ../cpp/simplex.cc
|
|
|
|
export function chat_migrate_init(dbPath: string, dbKey: string, confirm: string): Promise<[bigint, string]>
|
|
export function chat_close_store(ctrl: bigint): Promise<string>
|
|
export function chat_send_cmd(ctrl: bigint, cmd: string): Promise<string>
|
|
export function chat_recv_msg_wait(ctrl: bigint, wait: number): Promise<string>
|
|
export function chat_write_file(ctrl: bigint, path: string, buffer: ArrayBuffer): Promise<string>
|
|
export function chat_read_file(path: string, key: string, nonce: string): Promise<ArrayBuffer>
|
|
export function chat_encrypt_file(ctrl: bigint, fromPath: string, toPath: string): Promise<string>
|
|
export function chat_decrypt_file(fromPath: string, key: string, nonce: string, toPath: string): Promise<string>
|