import { type QueryExecutor } from "@supacloud/db"; export type DbWorkflowAction = "reverse" | "diff" | "plan" | "apply" | "role_check" | "role_sql"; export interface DbWorkflowArguments { action: DbWorkflowAction; root?: string; schema?: string; database_url?: string; schema_dir?: string; db_major_version?: number; out?: string; dir?: string; ref?: string; approved_digest?: string; application_role?: string; migration_role?: string; database?: string; } interface ToolResult { content: Array<{ type: "text"; text: string; }>; isError?: boolean; } export interface DbWorkflowOptions { environment?: NodeJS.ProcessEnv; projectRef?: string; apiUrl?: string; runDatabase?: () => ((args: Record) => Promise) | undefined; spawn?: (args: string[], root: string, environment: NodeJS.ProcessEnv) => Promise; connect?: (url: string) => { executor: QueryExecutor; close(): Promise; }; } export declare function runDbWorkflow(args: DbWorkflowArguments, projectRoot: string, options?: DbWorkflowOptions): Promise; export {};