import { firestore } from 'firebase-admin'; 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(): firestore.Timestamp; get nanoseconds(): number; get seconds(): number; toDate(): Date; toMillis(): number; isEqual(other: ITimestamp): boolean; }