// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Expression } from "./Expression";
import type { WithFill } from "./WithFill";

/**
 * Represent an expression with sort direction and null ordering.
 *
 * Used inside ORDER BY clauses, window frame ORDER BY, and index definitions.
 * When `desc` is false the sort is ascending. The `nulls_first` field
 * controls the NULLS FIRST / NULLS LAST modifier; `None` means unspecified
 * (database default).
 */
export type Ordered = { 
/**
 * The expression to sort by.
 */
this: Expression, 
/**
 * Whether the sort direction is descending (true) or ascending (false).
 */
desc: boolean, 
/**
 * `Some(true)` = NULLS FIRST, `Some(false)` = NULLS LAST, `None` = unspecified.
 */
nulls_first: boolean | null, 
/**
 * Whether ASC was explicitly written (not just implied)
 */
explicit_asc: boolean, 
/**
 * ClickHouse WITH FILL clause
 */
with_fill?: WithFill | null, };
