import type { BunMariaDBConfig } from "../../types"; /** * Statements that discard stored data (tables or column values). */ export declare function isDestructiveSchemaStatement(query: string): boolean; /** * Run `fn` with schema statements recorded but not executed. * Reads (information_schema) still run, so the plan is a close approximation: * steps that depend on earlier changes (e.g. after a table rename) may differ. */ export declare function planSchemaQueries(fn: () => Promise): Promise; /** * Run `fn`, refusing any destructive statement that was not approved. */ export declare function runSchemaQueriesGuarded(fn: () => Promise, allowDestructive: true | Set): Promise; export default function runSchemaQuery({ query, values, config, }: { query: string; values?: any[]; config?: BunMariaDBConfig; }): Promise; export declare function querySchemaRows>({ query, values, config, }: { query: string; values?: any[]; config?: BunMariaDBConfig; }): Promise;