airtune-nostr-tools-development
Version:
Tools for making a Nostr client.
16 lines (15 loc) • 438 B
TypeScript
import type { Event } from './event.ts';
export declare type Parameters = {
pubkey: string;
kind?: number;
until?: number;
since?: number;
};
export declare type Delegation = {
from: string;
to: string;
cond: string;
sig: string;
};
export declare function createDelegation(privateKey: string, parameters: Parameters): Delegation;
export declare function getDelegator(event: Event<number>): string | null;