import type { FilterGroup, SortOptions } from "@powerhousedao/design-system/connect";
type ColumnInfo = {
    readonly name: string;
    readonly dataType: string;
    readonly isNullable: boolean;
};
type TableInfo = {
    readonly name: string;
    readonly columns: ColumnInfo[];
};
type GetTableRowsOptions = {
    readonly schema?: string;
    readonly limit: number;
    readonly offset: number;
    readonly sort?: SortOptions;
    readonly filters?: FilterGroup;
};
type TablePage = {
    readonly columns: string[];
    readonly rows: Record<string, unknown>[];
    readonly total: number | null;
};
export declare function useDbExplorer(): {
    getTables: () => Promise<TableInfo[]>;
    getTableRows: (table: string, options: GetTableRowsOptions) => Promise<TablePage>;
    getDefaultSort: (table: string) => SortOptions | undefined;
    onExportDb: () => Promise<void>;
    onImportDb: (sqlContent: string) => Promise<void>;
};
export {};
//# sourceMappingURL=useDbExplorer.d.ts.map