import { kinds } from "nostr-tools";
import { blueprint } from "../event-factory.js";
import { skip } from "../helpers/pipeline.js";
import { setMetaTags } from "../operations/common.js";
import { setShortTextContent } from "../operations/content.js";
import { setFileMetadata } from "../operations/file-metadata.js";
import { includeHashtags } from "../operations/hashtags.js";
/** Blueprint to create a NIP-94 file metadata event */
export function FileMetadataBlueprint(metadata, description, options) {
    return blueprint(kinds.FileMetadata, setFileMetadata(metadata), description ? setShortTextContent(description, options) : skip(), options?.hashtags ? includeHashtags(options.hashtags) : skip(), setMetaTags(options));
}
