import { ReactNode } from 'react'; import { NostrMetadata } from '@nostrify/nostrify'; import { EventTemplate } from 'nostr-tools'; import { MessagingConfig, NotifyOptions } from './types'; import { Signer } from './lib/dmLib'; import { DMProviderProps } from './DMContext'; export interface DMProviderDefaultProps { children: ReactNode; /** Called when the system needs to show a user-visible notification (e.g. toast). */ onNotify: (options: NotifyOptions) => void; /** Current user (pubkey + signer); null when logged out. */ user: { pubkey: string; signer: Signer; } | null; /** Resolve display names for pubkeys. */ getDisplayName?: (pubkey: string, metadata?: NostrMetadata) => string; /** Batch-fetch author metadata; pass the app's useAuthorsBatch hook. */ fetchAuthorsBatch: (pubkeys: string[]) => { data?: Map; }; /** Publish a Nostr event. */ publishEvent: (event: EventTemplate) => Promise; /** Upload a file; return URL string. */ uploadFile: (file: File) => Promise; /** User's follow list (default: []). */ follows?: string[]; /** Messaging config (optional overrides for defaults). */ messagingConfig?: Partial; /** UI hints (optional). */ ui?: DMProviderProps['ui']; } export declare function DMProviderDefault({ children, messagingConfig: configOverride, onNotify, user, getDisplayName, fetchAuthorsBatch, publishEvent, uploadFile, follows, ui, }: DMProviderDefaultProps): import("react/jsx-runtime").JSX.Element;