import { NostrEvent } from '@nostrify/nostrify'; export declare const MESSAGE_PROTOCOL: { readonly NIP04: "nip04"; readonly NIP17: "nip17"; readonly UNKNOWN: "unknown"; }; export type MessageProtocol = typeof MESSAGE_PROTOCOL[keyof typeof MESSAGE_PROTOCOL]; export declare const PROTOCOL_MODE: { readonly NIP04_ONLY: "nip04_only"; readonly NIP17_ONLY: "nip17_only"; readonly NIP04_OR_NIP17: "nip04_or_nip17"; }; export type ProtocolMode = typeof PROTOCOL_MODE[keyof typeof PROTOCOL_MODE]; export declare const LOADING_PHASES: { readonly IDLE: "idle"; readonly CACHE: "cache"; readonly RELAYS: "relays"; readonly SUBSCRIPTIONS: "subscriptions"; readonly READY: "ready"; }; export type LoadingPhase = typeof LOADING_PHASES[keyof typeof LOADING_PHASES]; export declare const DM_PHASES: { readonly IDLE: "idle"; readonly CACHE: "cache"; readonly INITIAL_QUERY: "initial_query"; readonly GAP_FILLING: "gap_filling"; readonly COMPLETE: "complete"; }; export type DMPhase = typeof DM_PHASES[keyof typeof DM_PHASES]; export declare const PROTOCOL_CONFIG: { readonly nip04: { readonly label: "NIP-04"; readonly description: "Legacy DMs"; readonly kind: 4; }; readonly nip17: { readonly label: "NIP-17"; readonly description: "Private DMs"; readonly kind: 1059; }; readonly unknown: { readonly label: "Unknown"; readonly description: "Unknown protocol"; readonly kind: 0; }; }; /** * Get the message protocol from an event kind */ export declare function getMessageProtocol(event: NostrEvent): MessageProtocol; /** * Check if a protocol is valid for sending messages */ export declare function isValidSendProtocol(protocol: MessageProtocol): boolean;