import { AxioDB } from "../../../Services/Indexation.operation"; import { ResponseBuilder } from "../../helper/responseBuilder.helper"; import { FastifyReply, FastifyRequest } from "fastify"; export default class DatabaseController { private AxioDBInstance; constructor(AxioDBInstance: AxioDB); getDatabases(): Promise; createDatabase(request: FastifyRequest): Promise; deleteDatabase(request: FastifyRequest): Promise; /** * Creates a temporary tar.gz of the database directory, streams it to the client, and * deletes the temp file once the stream closes (whether it finished or errored). */ exportDatabase(request: FastifyRequest, reply: FastifyReply): Promise; importDatabase(request: FastifyRequest, reply: FastifyReply): Promise<{ message: string; file: string; }>; }