UNPKG

@enclaved/encli

Version:

CLI utilities for working with enclaved application server for TEEs

25 lines (24 loc) 865 B
import { Event } from "nostr-tools"; export declare function now(): number; export declare class PubkeyBatcher { private batchSize; private pubkeyRelays; private relayReqs; constructor(batchSize: number); add(pubkey: string, relay: string): [string, string[]]; relays(pubkey: string): string[]; remove(pubkey: string, relay: string): [string, string[]]; has(pubkey: string): boolean; } export declare function normalizeRelay(r: string): string | undefined; export declare function getIP(prefix?: string): any; export declare function exec(cmd: string, args: string[]): Promise<{ out: string; err: string; code: number; }>; export declare function readPubkey(dir: string): string; export declare function readPackageJson(): { version: string; }; export declare function tv(e: Event, name: string): string | undefined;