UNPKG

@enclaved/encli

Version:

CLI utilities for working with enclaved application server for TEEs

14 lines (13 loc) 824 B
import { Event, Filter, UnsignedEvent } from "nostr-tools"; import { Signer } from "./types"; export declare const DEFAULT_RELAYS: string[]; export declare const OUTBOX_RELAYS: string[]; export declare function publish(event: Event, relays?: string[]): Promise<Event>; export declare function signPublish(event: UnsignedEvent, signer: Signer, relays?: string[]): Promise<Event>; export declare function publishNip65Relays(signer: Signer, relays?: string[]): Promise<void>; export declare function fetchFromRelays(filter: Filter, relayUrls: string[], timeout?: number): Promise<Event[]>; export declare function fetchReplaceableEvent(pubkey: string, kind: number, relays?: string[]): Promise<Event | undefined>; export declare function fetchProfile(pubkey: string): Promise<{ profile: Event; profileContent: any; }>;