import type { _EKCalendarItem } from "./EKCalendarItem.js";
import type { _EKEventStore } from "./EKEventStore.js";
import type { _EKParticipant } from "./EKParticipant.js";
import type { _EKStructuredLocation } from "./EKStructuredLocation.js";
import type { _NSDate } from "../Foundation/NSDate.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { EKEventAvailability } from "./EKEventAvailability.js";
import type { EKEventStatus } from "./EKEventStatus.js";
export declare class _EKEvent extends _EKCalendarItem {
    static alloc(): _EKEvent;
    static new(): _EKEvent;
    init(): _EKEvent;
    /** @method eventWithEventStore: @abstract Creates a new autoreleased event object. */
    static eventWithEventStore$(eventStore: _EKEventStore): _EKEvent;
    /**
     * @method compareStartDateWithEvent @abstract Comparison function you can pass to sort NSArrays of EKEvents by start date.
     */
    compareStartDateWithEvent$(other: _EKEvent): number;
    /**
     * @method refresh @abstract Refreshes an event object to ensure it's still valid. @discussion When the database changes, your application is sent an EKEventStoreChangedNotification note. You should generally consider all EKEvent instances to be invalid as soon as you receive the notification. However, for events you truly care to keep around, you can call this method. It ensures the record is still valid by ensuring the event and start date are still valid. It also attempts to refresh all properties except those you might have modified. If this method returns NO, the record has been deleted or is otherwise invalid. You should not continue to use it. If it returns YES, all is still well, and the record is ready for continued use. You should only call this method on events that are more critical to keep around if possible, such as an event that is being actively edited, as this call is fairly heavyweight. Do not use it to refresh the entire selected range of events you might have had selected. It is mostly pointless anyway, as recurrence information may have changed.
     */
    refresh(): boolean;
    /**
     * @property eventIdentifier @abstract A unique identifier for this event. @discussion This identifier can be used to look the event up using [EKEventStore eventWithIdentifier:]. You can use this not only to simply fetch the event, but also to validate the event has not been deleted out from under you when you get an external change notification via the EKEventStore database changed notification. If eventWithIdentifier: returns nil, the event was deleted. Please note that if you change the calendar of an event, this ID will likely change. It is currently also possible for the ID to change due to a sync operation. For example, if a user moved an event on a different client to another calendar, we'd see it as a completely new event here. This may be nil for events that have not been saved.
     */
    eventIdentifier(): _NSString;
    /** @property allDay @abstract Indicates this event is an 'all day' event. */
    allDay(): boolean;
    setAllDay$(value: boolean): void;
    /**
     * @property startDate @abstract The start date for the event. @discussion This property represents the start date for this event. Floating events (such as all-day events) are currently always returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set it.
     */
    startDate(): _NSDate;
    setStartDate$(value: _NSDate): void;
    /**
     * @property endDate @abstract The end date for the event. @discussion This will be nil for new events until you set it.
     */
    endDate(): _NSDate;
    setEndDate$(value: _NSDate): void;
    /**
     * @property structuredLocation @abstract Allows you to set a structured location (a location with a potential geo-coordinate) on an event. The getter for EKEvent’s location property just returns the structured location’s title. The setter for EKEvent’s location property is equivalent to [event setStructuredLocation:[EKStructuredLocation locationWithTitle:…]].
     */
    structuredLocation(): _EKStructuredLocation;
    setStructuredLocation$(value: _EKStructuredLocation): void;
    /** @property organizer @abstract The organizer of this event, or nil. */
    organizer(): _EKParticipant | null;
    /**
     * @property availability @abstract The availability setting for this event. @discussion The availability setting is used by CalDAV and Exchange servers to indicate how the time should be treated for scheduling. If the calendar the event is currently in does not support event availability, EKEventAvailabilityNotSupported is returned.
     */
    availability(): EKEventAvailability;
    setAvailability$(value: EKEventAvailability): void;
    /**
     * @property status @abstract The status of the event. @discussion While the status offers four different values in the EKEventStatus enumeration, in practice, the only actionable and reliable status is canceled. Any other status should be considered informational at best. You cannot set this property. If you wish to cancel an event, you should simply remove it using removeEvent:.
     */
    status(): EKEventStatus;
    /**
     * @property isDetached @abstract Represents whether this event is detached from a recurring series. @discussion If this EKEvent is an instance of a repeating event, and an attribute of this EKEvent has been changed from the default value generated by the repeating event, isDetached will return YES. If the EKEvent is unchanged from its default state, or is not a repeating event, isDetached returns NO.
     */
    isDetached(): boolean;
    /**
     * @property occurrenceDate: @abstract The occurrence date of an event if it is part of a recurring series. @discussion This is only set if the event is part of a recurring series. It returns the date on which this event was originally scheduled to occur. For occurrences that are unmodified from the recurring series, this is the same as the start date. This value will remain the same even if the event has been detached and its start date has changed. Floating events (such as all-day events) are currently returned in the default time zone. ([NSTimeZone defaultTimeZone]) This will be nil for new events until you set startDate.
     */
    occurrenceDate(): _NSDate;
    /**
     * @method birthdayContactIdentifier @abstract Specifies the contact identifier of the person this event was created for. @discussion This property is only valid for events in the built-in Birthdays calendar. It specifies the contact identifier (for use with the Contacts framework) of the person this event was created for. For any other type of event, this property returns nil.
     */
    birthdayContactIdentifier(): _NSString;
    /**
     * @property birthdayPersonID @abstract Specifies the address book ID of the person this event was created for. @discussion This property is only valid for events in the built-in Birthdays calendar. It specifies the Address Book ID of the person this event was created for. For any other type of event, this property returns -1.
     */
    birthdayPersonID(): number;
    /**
     * @property birthdayPersonUniqueID @abstract Specifies the address book unique ID of the person this event was created for. @discussion This property is only valid for events in the built-in Birthdays calendar. It specifies the Address Book unique ID of the person this event was created for. For any other type of event, this property returns nil.
     * @deprecated
     */
    birthdayPersonUniqueID(): _NSString;
}
