/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /** Factory function that takes mongoose instance and returns the key methods */ export declare function createKeyMethods(mongoose: typeof import('mongoose')): { getUserKey: (params: { userId: string; name: string; }) => Promise; updateUserKey: (params: { userId: string; name: string; value: string; expiresAt?: Date | null; }) => Promise; deleteUserKey: (params: { userId: string; name?: string; all?: boolean; }) => Promise; getUserKeyValues: (params: { userId: string; name: string; }) => Promise>; getUserKeyExpiry: (params: { userId: string; name: string; }) => Promise<{ expiresAt: Date | 'never' | null; }>; }; export type KeyMethods = ReturnType;