import { kinds, KnownEvent, KnownEventTemplate } from "../helpers/event.js"; import { ProfileContent } from "../helpers/index.js"; import { EventFactory } from "./event.js"; export type ProfileTemplate = KnownEventTemplate; /** A factory class for building kind 0 profile/metadata events */ export declare class ProfileFactory extends EventFactory { /** * Creates a new profile factory * @returns A new profile factory */ static create(): ProfileFactory; /** * Creates a new profile factory from an existing metadata event with validation * @param event - The existing metadata event * @returns A new profile factory */ static modify(event: KnownEvent): ProfileFactory; /** Sets the entire profile content, replacing any existing content */ override(content: ProfileContent): this; /** Updates specific fields in the profile content, merging with existing content */ update(content: Partial): this; /** Sets the display name */ name(name: string): this; /** Sets the username */ username(username: string): this; /** Sets the display name (alias for name) */ displayName(displayName: string): this; /** Sets the about/bio text */ about(about: string): this; /** Sets the profile picture URL */ picture(picture: string): this; /** Sets the banner image URL */ banner(banner: string): this; /** Sets the website URL */ website(website: string): this; /** Sets the NIP-05 identifier */ nip05(nip05: string): this; /** Sets the Lightning Network address */ lnurlp(lnurlp: string): this; /** Sets the Lightning Network address (LNURL) */ lightningAddress(address: string): this; /** Sets the bot flag */ bot(bot: boolean): this; /** Sets the languages */ languages(languages: string[]): this; }