11 lines
488 B
TypeScript
11 lines
488 B
TypeScript
// This file was autogenerated from a .proto file, DO NOT EDIT!
|
|
import { NostrRequest } from './nostr_transport.js'
|
|
import * as Types from './types.js'
|
|
export type ResultError = { status: 'ERROR', reason: string }
|
|
|
|
export type NostrClientParams = {
|
|
pubDestination: string
|
|
checkResult?: true
|
|
}
|
|
export default (params: NostrClientParams, send: (to:string, message: NostrRequest) => Promise<any>, subscribe: (to:string, message: NostrRequest, cb:(res:any)=> void) => void) => ({
|
|
})
|