import { type HasQuery, type HasTarget } from '../Internal.js'; import type { SelectionInput } from '../Selection.js'; import { type Sql } from '../Sql.js'; import type { QueryBase } from './Query.js'; import type { UnionBase } from './Select.js'; export type CTE = Input & HasTarget & HasQuery; export declare function createCTE(cteName: string, query: UnionBase): CTE; export declare function formatCTE(query: QueryBase): Sql | undefined;