import z from 'zod'; /** * A target that acts as a wrapper for the query. For example: * * ```ts * const query = conn.query(sql`SELECT * FROM users`); * ^^^^^^^^^^ wrapper * ``` */ declare const zWrapperTarget: z.ZodObject<{ wrapper: z.ZodUnion]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>; type WrapperTarget = z.infer; /** * A target that is a tag expression. For example: * * ```ts * const query = sql`SELECT * FROM users`; * ^^^ tag * ``` */ declare const zTagTarget: z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>; type TagTarget = z.infer; type ConnectionTarget = WrapperTarget | TagTarget; declare const zRuleOptionConnection: z.ZodUnion]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; migrationsDir: z.ZodString; connectionUrl: z.ZodOptional; databaseName: z.ZodOptional; watchMode: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; databaseUrl: z.ZodString; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>; type RuleOptionConnection = z.infer; declare const zConfig: z.ZodObject<{ connections: z.ZodUnion]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; migrationsDir: z.ZodString; connectionUrl: z.ZodOptional; databaseName: z.ZodOptional; watchMode: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; databaseUrl: z.ZodString; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>>, z.ZodUnion]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; migrationsDir: z.ZodString; connectionUrl: z.ZodOptional; databaseName: z.ZodOptional; watchMode: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; databaseUrl: z.ZodString; }, z.core.$strip>, z.ZodObject<{ targets: z.ZodOptional]>; maxDepth: z.ZodOptional; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ tag: z.ZodUnion]>; transform: z.ZodOptional]>>]>>; fieldTransform: z.ZodOptional>; skipTypeAnnotations: z.ZodOptional; }, z.core.$strip>]>>>; keepAlive: z.ZodOptional; overrides: z.ZodOptional, z.ZodUnion]>; return: z.ZodString; }, z.core.$strip>]>>, z.ZodRecord]>; return: z.ZodString; }, z.core.$strip>]>>]>>; columns: z.ZodOptional>; }, z.core.$strip>>; nullAsUndefined: z.ZodOptional; nullAsOptional: z.ZodOptional; inferLiterals: z.ZodOptional>]>>; enforceType: z.ZodOptional>; plugins: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>]>; }, z.core.$strip>; type Config = z.infer; export type { Config as C, RuleOptionConnection as R, ConnectionTarget as a };