import type { Database } from '@adonisjs/lucid/database';
import type { UploadSession, UploadSessionListFilter, UploadSessionStore } from '../resumable_upload.js';
import type { MultipartPart } from '../types.js';
export interface LucidUploadSessionStoreOptions {
    /** Lucid connection name. Defaults to the `Database` default connection. */
    connectionName?: string;
    /** Sessions table name. Default `media_upload_sessions`. */
    table?: string;
    /** Parts side-index table name. Default `media_upload_parts`. */
    partsTable?: string;
    /**
     * Read and write the sessions' `tenant_id` column (media's `tenancy` is on). Off by default: the
     * column is then never touched.
     */
    tenantColumn?: boolean;
}
/**
 * Lucid-backed {@link UploadSessionStore}. Persists resumable upload sessions in
 * `media_upload_sessions` and, for multipart-capable disks, the per-part ETags in
 * `media_upload_parts`, via `@adonisjs/lucid`'s query builder (Knex) — so it works across
 * SQLite / Postgres / MySQL. JSON `metadata` is stored as TEXT and timestamps as epoch-ms integers,
 * keeping the schema portable, exactly like {@link LucidMediaStore}. Publish the migration with
 * `node ace configure @adonis-agora/media`.
 */
export declare class LucidUploadSessionStore implements UploadSessionStore {
    private readonly db;
    private readonly table;
    private readonly partsTable;
    private readonly connectionName;
    private readonly tenantColumn;
    constructor(db: Database, options?: LucidUploadSessionStoreOptions);
    private client;
    create(session: UploadSession): Promise<UploadSession>;
    get(id: string): Promise<UploadSession | null>;
    update(session: UploadSession): Promise<UploadSession>;
    delete(id: string): Promise<void>;
    addPart(id: string, part: MultipartPart): Promise<void>;
    listParts(id: string): Promise<MultipartPart[]>;
    list(filter?: UploadSessionListFilter): Promise<UploadSession[]>;
}
//# sourceMappingURL=lucid.d.ts.map