import { Model, HydratedDocument } from "mongoose"; export type APIUserRole = "write" | "read" | "readwrite" | "admin"; export declare const APIUserRoles: APIUserRole[]; interface IAPIUser { key: string; generated: Date; role: APIUserRole; } interface IAPIUserMethods { mayAccess(role: APIUserRole): boolean; } interface APIUserModel extends Model { createNew(role: APIUserRole): Promise>; findByAPIKey(key: string): Promise | null>; } declare const _default: APIUserModel; export default _default;