UNPKG

@a11ywatch/core

Version:
20 lines (19 loc) 795 B
import type { Collection, Document, WithId } from "mongodb"; declare const getCounter: ({ _id, }: { _id: any; }) => Promise<[WithId<Document>, Collection<Document>]>; declare const getNextSequenceValue: (sequenceName: any) => Promise<any>; declare const CountersController: ({ user }?: { user: any; }) => { fixCounters: (_: any, chain: any) => Promise<WithId<Document>[] | (Collection<Document> | WithId<Document>[])[]>; getCounter: ({ _id, }: { _id: any; }) => Promise<[WithId<Document>, Collection<Document>]>; getNextSequenceValue: (sequenceName: any) => Promise<any>; getCounters: ({ userId, pageUrl }: { userId: any; pageUrl: any; }) => Promise<WithId<Document>[]>; }; export { getCounter, getNextSequenceValue, CountersController };