import AccountManager from "../account"; export type SessionInfos = { id: number; userAgent: string; ipAddress: string; used: string; created: string; isUsing: boolean; }; export declare function convertRawToSession(accountManager: AccountManager, raw: S): S extends SessionInfos[] ? Session[] : Session; export default class Session { private accountManager; constructor(accountManager: AccountManager, infos: SessionInfos); /** * The Internal Id of the session * @since 0.0.1 */ id: number; /** * The User Agent the Session was last used with * @since 0.0.1 */ userAgent: string; /** * The IP Address the Session was last used with * @since 0.0.1 */ ipAddress: string; /** * Whether the Session is the one currently being used * @since 0.1.20 */ isUsing: boolean; /** * The Date when the Session was last used * @since 0.0.1 */ used: Date; /** * The Date when the Session was created * @since 0.0.1 */ created: Date; /** * Delete this Session * @since 0.0.1 */ delete(): import("../..").Response; }