Files
snort/packages/system/dist/NostrLink.d.ts
2023-06-08 12:45:23 +02:00

13 lines
495 B
TypeScript

import { NostrPrefix } from ".";
export interface NostrLink {
type: NostrPrefix;
id: string;
kind?: number;
author?: string;
relays?: Array<string>;
encode(): string;
}
export declare function validateNostrLink(link: string): boolean;
export declare function tryParseNostrLink(link: string, prefixHint?: NostrPrefix): NostrLink | undefined;
export declare function parseNostrLink(link: string, prefixHint?: NostrPrefix): NostrLink;
//# sourceMappingURL=NostrLink.d.ts.map