import { kinds } from "nostr-tools";
import { blueprint } from "../event-factory.js";
import { includeAltTag, setMetaTags } from "../operations/common.js";
import { setAttributions, setComment, setContext, setHighlightContent, setSource } from "../operations/highlight.js";
import { setZapSplit } from "../operations/zap-split.js";
/**
 * NIP-84 Highlight event (kind 9802) blueprint
 * Creates a highlight event that references content from nostr events or external URLs
 */
export function HighlightBlueprint(content, source, options) {
    return blueprint(kinds.Highlights, setHighlightContent(content), setSource(source), options?.attributions ? setAttributions(options.attributions) : undefined, options?.context ? setContext(options.context) : undefined, options?.comment ? setComment(options.comment) : undefined, setZapSplit(options), setMetaTags(options), includeAltTag(options?.alt ?? "A text highlight"));
}
