import { Event as NostrEvent } from 'nostr-tools'; import 'websocket-polyfill'; export interface StaticFileInfo { path: string; sha256: string; } export declare class NostrManager { private pool; private config; constructor(); private getConfig; generateKeyPair(): { privateKey: string; publicKey: string; nsec: string; npub: string; }; parseNostrKey(key: string): { type: 'nsec' | 'npub'; data: Uint8Array; }; publishEvent(content: string, kind?: number, tags?: string[][]): Promise<{ eventId: string; relayResults: { relay: string; success: boolean; error?: string; }[]; }>; fetchEvents(filter: any, relays?: string[]): Promise; /** * Publish static file events according to Pubkey Static Websites NIP * Kind 34128 events with d (absolute path) and x (sha256 hash) tags */ publishStaticFileEvents(files: StaticFileInfo[]): Promise<{ eventId: string; relayResults: { relay: string; success: boolean; error?: string; }[]; }[]>; /** * Publish a BUD-03 user servers event (kind 10063) to specify Blossom servers */ publishUserServersEvent(blossomServers: string[]): Promise<{ eventId: string; relayResults: { relay: string; success: boolean; error?: string; }[]; }>; /** * Get the npub (bech32 encoded public key) for subdomain generation */ getNpubSubdomain(): Promise; /** * Get the public key from private key (for auth flow) */ getPublicKeyFromPrivate(privateKeyHex: string): string; publishDeploymentMetadata(deploymentInfo: { npubSubdomain: string; files: StaticFileInfo[]; blossomServers: string[]; }): Promise<{ staticFileEventResults: { eventId: string; relayResults: { relay: string; success: boolean; error?: string; }[]; }[]; userServersEventResult: { eventId: string; relayResults: { relay: string; success: boolean; error?: string; }[]; }; }>; getStaticFileEvents(publicKey?: string, path?: string): Promise; getUserServersEvent(publicKey?: string): Promise; /** * Legacy method - kept for compatibility but should transition to new NIP */ getDeploymentHistory(publicKey?: string): Promise; close(): Promise; } //# sourceMappingURL=nostr.d.ts.map