import{FileHashesRepository as i}from"../repositories/file-hashes-repository.js";class e{static#e;#t;constructor(t){this.#t=t}static async#a(t){const a=await i.getInstance(t),s=new e(a);e.#e=s}static async getInstance(t){return t.removeExisting===void 0&&(t.removeExisting=!1),e.#e||await e.#a(t),e.#e}async getByPath(t){return await this.#t.getByPath(t)}async getAllOutdated(t){return await this.#t.getAllOutdated(t)}async getAllByFileType(t){return await this.#t.getAllByFileType(t)}async upsertFileHash(t){return await this.#t.upsertFileHash(t)}async updateFileHashes(t,a){return await this.#t.updateFileHashesStatus(t,a)}async deleteFileHashes(t){return await this.#t.deleteFileHashes(t)}}export{e as FileHashesService};
