import type { PostgresColumn } from "../types.ts"; /** A row of `VIEW_DEFINITIONS_SQL`. */ export interface ViewDefinitionRow { view_id: number | string; definition: string; non_null_columns: [number | string, number | string][]; } /** * Mark view and materialized view columns as not nullable when PostgreSQL can * prove it from the view's query tree (see {@link inferNonNullViewColumns}) or * when the column comment has an `@notNull` line. PostgreSQL never sets * `attnotnull` on view columns, so without this every one of them is nullable. */ export declare function applyViewColumnNullability(columns: T[], rows: ViewDefinitionRow[]): T[];