import { Constructable, TableType } from "../util.ts"; import { SqlSelectable } from "../SqlStatement.ts"; import { ChainSelectAfterFirstFrom, ChainSelect, SelectAsNameOption, OrderByParam } from "./select_chain.ts"; export declare class SelectChainAfterSelect implements ChainSelect { #private; constructor(sql: string); from(selectable: Constructable, option?: SelectAsNameOption): ChainSelectAfterFirstFrom; toString(): string; } /** * 生成 ORDER BY 语句 * @public * @example * ```ts * * orderBy([]) // "" * orderBy({}) // "" * orderBy() // "" * * // 以下生成 "\nORDER BY age DESC NULLS FIRST,num ASC" * orderBy("age DESC NULLS FIRST,num ASC"); * orderBy(["age DESC NULLS FIRST", "num ASC"]); * orderBy([ * { key: "age", asc: false, nullLast: false }, * { key: "num", asc: true }, * ]); * * ``` */ export declare function orderBy(by?: Constructable): string;