/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
import type { StudioBackend } from './backend';
import type { DraftFile, PublishResult, WorkspaceBundle } from './types';
export interface DrizzleStudioBackendOptions {
    repoPath: string;
    /** Override DATABASE_URL env var. Used in cloud to scope to per-agent databases. */
    databaseUrl?: string;
}
export declare class DrizzleStudioBackend implements StudioBackend {
    private db;
    private repoPath;
    private log;
    constructor(options: DrizzleStudioBackendOptions);
    initialize(): Promise<void>;
    listDrafts(userId: string): Promise<DraftFile[]>;
    readDraft(userId: string, filePath: string): Promise<DraftFile | null>;
    saveDraft(userId: string, filePath: string, content: string): Promise<void>;
    deleteDraft(userId: string, filePath: string): Promise<void>;
    discardAllDrafts(userId: string): Promise<number>;
    publishDrafts(userId: string): Promise<PublishResult>;
    getWorkspace(): Promise<WorkspaceBundle>;
}
