import { Timestamp as TimestampOrig } from "firebase/firestore"; import { ITimestamp } from "../types"; /** * Wrapper for firestore server timestamp, mainly used to keep * imports clean when using the library. */ export default class Timestamp implements ITimestamp { private _native; constructor(seconds: number, nanoseconds: number); static fromDate(date: Date): Timestamp; static fromMillis(millis: number): Timestamp; get native(): TimestampOrig; get nanoseconds(): number; get seconds(): number; toDate(): Date; toMillis(): number; isEqual(other: ITimestamp): boolean; }