import { default as NDK, NDKUser, NDKUserProfile, NDKEvent } from '@nostr-dev-kit/ndk'; export declare class NostrService { private static instance; private ndk; private isConnected; private constructor(); static getInstance(): NostrService; connectToNostr(relays?: string[]): Promise; /** * Get list of relay URLs that are currently connected * @returns Array of normalized connected relay URLs (without trailing slashes) */ private getConnectedRelays; getRelays(): string[]; resolveNDKUser(identifier: { npub?: string | null; nip05?: string | null; pubkey?: string | null; }): Promise; resolveNDKEvent(identifier: { hex?: string | null; }): Promise; /** * Convenience helper to fetch zap count for a profile. * It determines the user based on the provided identifier and * returns the number of zap receipts found (count, **not** total sats). */ getZapCount(identifier: { npub?: string; nip05?: string; pubkey?: string; }): Promise; getProfile(user: NDKUser | null): Promise; getPost(eventId: string): Promise; fetchFollows(user: NDKUser): Promise; fetchFollowers(user: NDKUser): Promise; fetchNotesAndReplies(user: NDKUser): Promise<[number, number]>; fetchZaps(user: NDKUser): Promise; getNDK(): NDK; /** * Check if a Nostr signer is available * @returns boolean indicating if a signer is available */ hasSigner(): boolean; }