/** * API Key Model - TypeScript Implementation * * This class focuses solely on API key model functionality and behavior. * It extends BaseMockModel with API key-specific methods and properties. */ import { BaseMockModel } from './baseMockModel.js'; interface ApiKeyData { _id?: string; key?: string; name?: string; userId?: string; isActive?: boolean; createdAt?: Date; [key: string]: any; } interface QueryChain { data: any[]; sort: () => QueryChain; lean: () => Promise; exec: () => Promise; } declare const mockApiKeys: any[]; /** * API Key Model Class * * Provides Mongoose-compatible API key model for testing scenarios. * Includes API key-specific validation and methods. */ declare class ApiKey extends BaseMockModel { key?: string; name?: string; userId?: string; isActive?: boolean; createdAt?: Date; constructor(data?: ApiKeyData); static getCollection(): any[]; static findOne(query: { key?: string; [key: string]: any; }): Promise; static findOneAndDelete(query: { key?: string; [key: string]: any; }): Promise; static findOneAndUpdate(query: { key?: string; [key: string]: any; }, update: any): Promise; static find(): QueryChain; } export { ApiKey, mockApiKeys }; //# sourceMappingURL=apiKeyModel.d.ts.map