import type { PostgresAccessor } from '../../accessor/postgres.ts'; export interface ColumnInfo { name: string; type: string; nullable: boolean; } export interface ForeignKey { columns: string[]; references: { schema: string; table: string; columns: string[]; }; } export interface IndexInfo { name: string; columns: string[]; unique: boolean; } export interface Relationship { from: { schema: string; table: string; columns: string[]; }; to: { schema: string; table: string; columns: string[]; }; kind: 'many_to_one'; } export interface EnumInfo { type: string; labels: string[]; } export interface ColumnStats { n_distinct: number; most_common_vals: string[]; } export declare function quoteIdent(ident: string): string; export declare function listSchemas(accessor: PostgresAccessor, allowlist: readonly string[] | null): Promise; export declare function listTables(accessor: PostgresAccessor, schema: string): Promise; export declare function listViews(accessor: PostgresAccessor, schema: string): Promise; export declare function listMatviews(accessor: PostgresAccessor, schema: string): Promise; export declare function countRows(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function estimateSize(accessor: PostgresAccessor, schema: string, name: string): Promise<[number, number]>; export declare function estimatedRowCount(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function tableSizeBytes(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchRows(accessor: PostgresAccessor, schema: string, name: string, options: { limit: number; offset: number; }): Promise[]>; export declare function fetchColumns(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchPrimaryKey(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchForeignKeys(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchIndexes(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchAllRelationships(accessor: PostgresAccessor, schemas: readonly string[]): Promise; export declare function fetchTableComment(accessor: PostgresAccessor, schema: string, name: string): Promise; export declare function fetchColumnComments(accessor: PostgresAccessor, schema: string, name: string): Promise>; export declare function fetchEnumColumns(accessor: PostgresAccessor, schema: string, name: string): Promise>; export declare function fetchColumnStats(accessor: PostgresAccessor, schema: string, name: string): Promise>; //# sourceMappingURL=client.d.ts.map