import { D as DatabaseKind, I as InspectorCapabilities, S as SnapshotExport } from './snapshot-Dhyecgo2.js'; type ColumnInfo = { name: string; type: string; notNull: boolean; pk: boolean; defaultValue: string | null; }; type SchemaTable = { name: string; columns: ColumnInfo[]; }; type TableInfo = { name: string; rowCount: number; }; type QueryResult = { columns: string[]; rows: (string | number | null)[][]; rowCount: number; durationMs: number; }; type QueryError = { message: string; sql: string; }; type TablePageRequest = { table: string; page: number; pageSize: number; sortColumn?: string | null; sortDir?: 'asc' | 'desc'; search?: string; }; type TablePageResult = { columns: string[]; rows: (string | number | null)[][]; totalCount: number; page: number; pageSize: number; }; interface DatabaseInspector { readonly kind: DatabaseKind; readonly capabilities: InspectorCapabilities; open(snapshot: SnapshotExport | ArrayBuffer): Promise; close(): void; listTables(): TableInfo[]; getSchema(): SchemaTable[]; fetchTablePage(request: TablePageRequest): TablePageResult; executeQuery(sql: string): QueryResult; } type InspectorDefinition = { kind: DatabaseKind; displayName: string; mimeTypes: string[]; canOpenBytes?: (bytes: ArrayBuffer) => boolean; createInspector: () => DatabaseInspector | Promise; }; export type { ColumnInfo as C, DatabaseInspector as D, InspectorDefinition as I, QueryResult as Q, SchemaTable as S, TableInfo as T, TablePageRequest as a, TablePageResult as b, QueryError as c };