import type {Result} from 'result' export type Key = void export class SecretBox { public static gen_key() : Key { throw "todo" } public static encrypt(key: Key, data: Uint8Array) : SecretBox { throw "todo" } public decrypt(key: Key) : Result { throw "todo" } public toString() : string { throw "todo" } public static fromString(data: string) : Result> { throw "todo" } }