import { z } from "zod"; import { EntityRef } from "@azimutt/models"; export declare const Column: z.ZodObject<{ content: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"wildcard">; table: z.ZodOptional; schema: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }, { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }>, z.ZodObject; catalog: z.ZodOptional; schema: z.ZodOptional; }, { kind: z.ZodLiteral<"column">; table: z.ZodOptional; column: z.ZodArray; }>, "strict", z.ZodTypeAny, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"expression">; text: z.ZodString; columns: z.ZodOptional; catalog: z.ZodOptional; schema: z.ZodOptional; }, { kind: z.ZodLiteral<"column">; table: z.ZodOptional; column: z.ZodArray; }>, "strict", z.ZodTypeAny, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; }, { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; }>]>; alias: z.ZodOptional; name: z.ZodString; }, "strip", z.ZodTypeAny, { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }, { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }>; export type Column = z.infer; export declare const From: z.ZodType; export type From = { table?: EntityRef | undefined; select?: Select | undefined; alias?: string | undefined; }; export declare const Select: z.ZodObject<{ command: z.ZodLiteral<"SELECT">; language: z.ZodLiteral<"DML">; operation: z.ZodLiteral<"read">; result: z.ZodObject<{ columns: z.ZodArray; table: z.ZodOptional; schema: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }, { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }>, z.ZodObject; catalog: z.ZodOptional; schema: z.ZodOptional; }, { kind: z.ZodLiteral<"column">; table: z.ZodOptional; column: z.ZodArray; }>, "strict", z.ZodTypeAny, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"expression">; text: z.ZodString; columns: z.ZodOptional; catalog: z.ZodOptional; schema: z.ZodOptional; }, { kind: z.ZodLiteral<"column">; table: z.ZodOptional; column: z.ZodArray; }>, "strict", z.ZodTypeAny, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }, { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; }, { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; }>]>; alias: z.ZodOptional; name: z.ZodString; }, "strip", z.ZodTypeAny, { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }, { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }>, "many">; distinct: z.ZodOptional; }, "strip", z.ZodTypeAny, { columns: { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }[]; distinct?: boolean | undefined; }, { columns: { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }[]; distinct?: boolean | undefined; }>; from: z.ZodType; joins: z.ZodOptional, "many">>; }, "strict", z.ZodTypeAny, { command: "SELECT"; language: "DML"; operation: "read"; result: { columns: { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }[]; distinct?: boolean | undefined; }; from: From; joins?: From[] | undefined; }, { command: "SELECT"; language: "DML"; operation: "read"; result: { columns: { content: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; } | { kind: "expression"; text: string; columns?: { kind: "column"; column: string[]; schema?: string | undefined; table?: string | undefined; database?: string | undefined; catalog?: string | undefined; }[] | undefined; } | { kind: "wildcard"; schema?: string | undefined; table?: string | undefined; }; name: string; alias?: string | undefined; }[]; distinct?: boolean | undefined; }; from: From; joins?: From[] | undefined; }>; export type Select = z.infer; //# sourceMappingURL=select.d.ts.map