import { Event, EventTemplate } from 'nostr-tools' export interface NostrProfile { pubkey: string name?: string about?: string picture?: string nip05?: string } export interface Article { id: string pubkey: string title: string preview: string content: string createdAt: number zapAmount: number paid: boolean invoice?: string // BOLT11 invoice from event tags (if author created one) paymentHash?: string // Payment hash from event tags } export interface ZapRequest { event: Event amount: number targetPubkey: string targetEventId?: string } export interface NostrConnectState { connected: boolean pubkey: string | null profile: NostrProfile | null }