/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import type { Types } from 'mongoose'; import type { AgentApiKeyCreateResult, AgentApiKeyCreateData, AgentApiKeyListItem } from '~/types'; export declare function createAgentApiKeyMethods(mongoose: typeof import('mongoose')): { createAgentApiKey: (data: AgentApiKeyCreateData) => Promise; validateAgentApiKey: (apiKey: string) => Promise<{ userId: Types.ObjectId; keyId: Types.ObjectId; } | null>; listAgentApiKeys: (userId: string | Types.ObjectId) => Promise; deleteAgentApiKey: (keyId: string | Types.ObjectId, userId: string | Types.ObjectId) => Promise; deleteAllAgentApiKeys: (userId: string | Types.ObjectId) => Promise; getAgentApiKeyById: (keyId: string | Types.ObjectId, userId: string | Types.ObjectId) => Promise; }; export type AgentApiKeyMethods = ReturnType;