import { addAddressTag, removeAddressTag } from "./tag/common.js";
import { includeSingletonTag, modifyPublicTags } from "./tags.js";
import { getAddressPointerForEvent, isAddressPointer } from "applesauce-core/helpers";
/** Sets the title of a calendar */
export function setTitle(title) {
    return includeSingletonTag(["title", title], true);
}
/** Adds a calendar event tags to a calendar event */
export function addEvent(event) {
    return modifyPublicTags(addAddressTag(isAddressPointer(event) ? event : getAddressPointerForEvent(event)));
}
/** Removes a calendar event tags from a calendar event */
export function removeEvent(event) {
    return modifyPublicTags(removeAddressTag(isAddressPointer(event) ? event : getAddressPointerForEvent(event)));
}
