import { type DbExec } from "../db/client.js"; import type { DbAdminMutation, DbAdminMutationResult, DbAdminQueryResult, DbAdminRowsRequest, DbAdminRowsResult, DbAdminTableSchema, DbAdminTableSummary } from "./types.js"; export interface DbAdminRuntime { db?: DbExec; notifyChange?: () => Promise; } export declare function listTables(runtime?: DbAdminRuntime, options?: { maxRowCounts?: number; }): Promise<{ tables: DbAdminTableSummary[]; }>; export declare function getTableSchema(table: string, runtime?: DbAdminRuntime): Promise; export declare function getRows(table: string, req: DbAdminRowsRequest, runtime?: DbAdminRuntime): Promise; export declare function applyMutations(table: string, m: DbAdminMutation, runtime?: DbAdminRuntime): Promise; export declare class DbAdminConfirmRequiredError extends Error { readonly needsConfirm = true; constructor(message: string); } export declare function runSql(sql: string, params: unknown[] | undefined, opts?: { confirmDestructive?: boolean; }, runtime?: DbAdminRuntime): Promise;