export interface RelaySettings { name: string; url: string; auth: boolean; dmAuth: boolean; whitelist: string[]; dataDir: string; configPath: string; } export declare function defaultConfigPath(): string; export declare function npubToHex(npub: string): string; export declare function hexToNpub(hex: string): string; export declare function readRelaySettings(configPath?: string): RelaySettings | null; export declare function addToWhitelist(npubOrHex: string, configPath?: string): { ok: boolean; hex: string; already: boolean; }; export declare function removeFromWhitelist(npubOrHex: string, configPath?: string): { ok: boolean; hex: string; }; export declare function setAuthFlag(flag: 'nip42_auth' | 'nip42_dms', value: boolean, configPath?: string): boolean;