import AccountManager from "../account"; export type TicketInfos = { id: number; title: string; open: boolean; category: string; lastMessage: string | null; created: string; }; export declare function convertRawToTicket(accountManager: AccountManager, raw: S): S extends TicketInfos[] ? Ticket[] : Ticket; export default class Ticket { private accountManager; constructor(accountManager: AccountManager, infos: TicketInfos); /** * The Internal Id of the Ticket * @since 0.1.28 */ id: number; /** * The Title of the Ticket * @since 0.1.28 */ title: string; /** * Whether the Ticket is Open * @since 0.1.30 */ isOpen: boolean; /** * The Category of the Ticket * @since 0.1.28 */ category: 'BILLING' | 'SALES' | 'WEBSITE' | 'PRIVACY' | 'SERVICE' | 'ABUSE'; /** * The Date when the Last Message by support was sent at * @since 0.1.31 */ lastMessage: Date | null; /** * The Date when the Ticket was created * @since 0.1.28 */ created: Date; /** * Close this Ticket * @since 0.1.28 */ close(): import("../..").Response; }