import { kinds } from "nostr-tools";
import { blueprint } from "../event-factory.js";
import { setShortTextContent } from "../operations/content.js";
import { includeNofityTags, setThreadParent } from "../operations/note.js";
/** Short text note reply (kind 1) blueprint */
export function NoteReplyBlueprint(parent, content, options) {
    if (parent.kind !== kinds.ShortTextNote)
        throw new Error("Kind 1 replies should only be used to reply to kind 1 notes");
    return blueprint(kinds.ShortTextNote, 
    // add NIP-10 tags
    setThreadParent(parent), 
    // copy "p" tags from parent
    includeNofityTags(parent), 
    // set default text content
    setShortTextContent(content, options));
}
