import type { ResourceId } from '@cloudcommerce/types'; declare const db: { getDeadline: () => Date; save: (orderId: ResourceId, trackingStatus: string, trackingCode: string, serviceCode?: string) => Promise; get: (orderId: ResourceId, trackingCode: string) => Promise; clear: () => Promise; remove: (trackingCode: string, serviceCode: string) => Promise; update: (trackingStatus: string | number, trackingCode: string) => Promise; getAll: () => Promise<{ [x: string]: any; }[]>; getAllDelivered: () => Promise<{ [x: string]: any; }[]>; }; export default db; export type TrackingDoc = { orderId: ResourceId; trackingStatus: string; trackingCode: string; serviceCode: string; createdAt: Date; updateAt?: string; };