import { Connection, Model } from "mongoose"; import { RateLimitOptions } from ".."; import Store = require("./Store"); export = MongodbStore; declare class MongodbStore extends Store { collectionName: string; collectionAbuseName: string; Ratelimits: Model; Abuse: Model; constructor(mongodb: Connection, options?: Partial); incr(key: string, options: RateLimitOptions, weight: number): Promise<{ counter: number; dateEnd: number }>; decrement(key: string, options: RateLimitOptions, weight: number): Promise; saveAbuse(options: RateLimitOptions & { key: string; ip: string; user_id: any }): Promise; } declare namespace MongodbStore { interface MongodbStoreOptions { collectionName: string; collectionAbuseName: string; } }