/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import type { DeleteResult } from 'mongoose'; import type { FindPluginAuthsByKeysParams, UpdatePluginAuthParams, DeletePluginAuthParams, FindPluginAuthParams, IPluginAuth } from '~/types'; export declare function createPluginAuthMethods(mongoose: typeof import('mongoose')): { findOnePluginAuth: ({ userId, authField, pluginKey, }: FindPluginAuthParams) => Promise; findPluginAuthsByKeys: ({ userId, pluginKeys, }: FindPluginAuthsByKeysParams) => Promise; updatePluginAuth: ({ userId, authField, pluginKey, value, }: UpdatePluginAuthParams) => Promise; deletePluginAuth: ({ userId, authField, pluginKey, all, }: DeletePluginAuthParams) => Promise; deleteAllUserPluginAuths: (userId: string) => Promise; }; export type PluginAuthMethods = ReturnType;