import type { Kysely } from "kysely";
import type { DatabaseDumps, ObservabilityDB } from "../db/schema.js";
export type CreateInput = {
    documentId: string;
    tenantId: string;
    requestedBy: string;
    now: Date;
};
export declare class DumpsRepo {
    private readonly db;
    constructor(db: Kysely<ObservabilityDB>);
    create(input: CreateInput): Promise<DatabaseDumps>;
    setJobName(id: string, jobName: string): Promise<void>;
    markRunning(id: string, jobName: string, at: Date): Promise<void>;
    markReady(id: string, s3Key: string, sizeBytes: number, at: Date): Promise<void>;
    markFailed(id: string, errorMessage: string, at: Date): Promise<void>;
    listByTenant(tenantId: string, limit?: number): Promise<DatabaseDumps[]>;
    getById(id: string): Promise<DatabaseDumps | null>;
    listInFlight(): Promise<DatabaseDumps[]>;
    pruneOlderThan(cutoff: Date): Promise<number>;
}
//# sourceMappingURL=repo.d.ts.map