import type { Connection, FilterQuery } from 'mongoose'; import { ISetting, IStorageSettings } from './mongoose/schemas/setting'; type IKeyOfProjection = Exclude; type IGlobalSetting = Pick; export { IGlobalSetting as ISetting }; /** * 設定リポジトリ */ export declare class SettingRepo { private readonly settingModel; constructor(connection: Connection); saveOne(params: ISetting): Promise; findOne(filter: { project?: { id?: { $eq?: string; }; }; }, inclusion: IKeyOfProjection[]): Promise; /** * 初期設定追加専用 */ addGlobalStorageSettings(params: { key: keyof IStorageSettings; value: number; }): Promise; unsetUnnecessaryFields(params: { filter: FilterQuery; $unset: any; }): Promise; }