/** * Browser-safe option primitives shared across dbx-tools packages. * * @module */ import { z } from "zod"; export declare const DatabricksEnvironmentNamesSchema: z.ZodObject<{ profile: z.ZodDefault>; host: z.ZodDefault>; accountId: z.ZodDefault>; workspaceId: z.ZodDefault>; configFile: z.ZodDefault>; clientId: z.ZodDefault>; clientSecret: z.ZodDefault>; accessToken: z.ZodDefault>; groupId: z.ZodDefault>; authType: z.ZodDefault>; appName: z.ZodDefault>; appPort: z.ZodDefault>; lakebaseEndpoint: z.ZodDefault>; }, z.core.$strict>; export type DatabricksEnvironmentNames = z.output; /** Canonical Databricks environment names derived from the owning schema. */ export declare const databricksEnvironmentNames: Readonly<{ profile: "DATABRICKS_CONFIG_PROFILE"; host: "DATABRICKS_HOST"; accountId: "DATABRICKS_ACCOUNT_ID"; workspaceId: "DATABRICKS_WORKSPACE_ID"; configFile: "DATABRICKS_CONFIG_FILE"; clientId: "DATABRICKS_CLIENT_ID"; clientSecret: "DATABRICKS_CLIENT_SECRET"; accessToken: "DATABRICKS_TOKEN"; groupId: "DATABRICKS_GROUP_ID"; authType: "DATABRICKS_AUTH_TYPE"; appName: "DATABRICKS_APP_NAME"; appPort: "DATABRICKS_APP_PORT"; lakebaseEndpoint: "LAKEBASE_ENDPOINT"; }>; export declare const PostgresEnvironmentNamesSchema: z.ZodObject<{ postgresRole: z.ZodDefault>; }, z.core.$strict>; export type PostgresEnvironmentNames = z.output; /** Canonical PostgreSQL environment names derived from the owning schema. */ export declare const postgresEnvironmentNames: Readonly<{ postgresRole: "DBX_TOOLS_POSTGRES_ROLE"; }>; export declare const postgresRoleSchema: z.ZodString; export declare const PostgresOptionsSchema: z.ZodObject<{ postgresRole: z.ZodOptional; }, z.core.$strict>; export declare const PostgresConfigOptionsSchema: z.ZodObject<{ postgresRole: z.ZodOptional; }, z.core.$strict>; export type PostgresOptions = z.input; export declare const tcpPortSchema: z.ZodCoercedNumber; export declare const tcpPortOrZeroSchema: z.ZodCoercedNumber; export declare const normalizedUrlSchema: z.ZodString; export declare const DatabricksOptionsSchema: z.ZodObject<{ profile: z.ZodOptional; host: z.ZodOptional; accountId: z.ZodOptional; workspaceId: z.ZodOptional; configFile: z.ZodOptional; clientId: z.ZodOptional; clientSecret: z.ZodOptional; accessToken: z.ZodOptional; groupId: z.ZodOptional; authType: z.ZodOptional; appName: z.ZodOptional; appPort: z.ZodOptional>; lakebaseEndpoint: z.ZodOptional; }, z.core.$strict>; export type DatabricksOptions = z.input; /** Key format used when serializing parsed options. */ export type OptionSerializationFormat = "flag" | "env"; /** Serialize complete parsed options as a process environment map. */ export declare function serializeOptsEnvironment(schema: z.ZodObject, values: z.input>): Readonly>; export declare const LakebaseOptionsSchema: z.ZodObject<{ lakebaseEndpoint: z.ZodOptional; }, z.core.$strict>; export type LakebaseOptions = z.input; /** Explicit option values or environment entries consumed by option parsing helpers. */ export type OptionValueMap = Readonly> | null; /** Parse only supplied flag and environment values through an owning Zod object schema. */ export declare function parseOpts(schema: z.ZodObject, flags?: OptionValueMap, environment?: OptionValueMap): Partial>>; /** Supported listener transport schemes. */ export type ListenScheme = "tcp" | "unix"; export declare const TcpListenAddressSchema: z.ZodObject<{ scheme: z.ZodLiteral<"tcp">; host: z.ZodString; port: z.ZodCoercedNumber; }, z.core.$strict>; export declare const UnixListenAddressSchema: z.ZodObject<{ scheme: z.ZodLiteral<"unix">; path: z.ZodString; }, z.core.$strict>; /** TCP listener returned by {@link listenAddressSchema}. */ export type TcpListenAddress = z.output; /** Unix-domain listener returned by {@link listenAddressSchema}. */ export type UnixListenAddress = z.output; /** Transport-aware listener address. */ export type ListenAddress = TcpListenAddress | UnixListenAddress; /** Defaults and validation policy for {@link listenAddressSchema}. */ export interface ListenAddressOptions { readonly port: number; readonly host?: string; readonly loopback?: boolean; readonly scheme?: ListenScheme; readonly schemes?: readonly ListenScheme[]; readonly withDefault?: boolean; } /** Raw listener input accepted before transport-aware normalization. */ export type ListenAddressInput = ListenAddress | string | number | undefined; export declare function listenAddressSchema(options: ListenAddressOptions & { readonly schemes: readonly ["tcp", "unix"]; readonly withDefault: false; }): z.ZodType; export declare function listenAddressSchema(options: ListenAddressOptions & { readonly schemes: readonly ["tcp", "unix"]; }): z.ZodDefault>; export declare function listenAddressSchema(options: ListenAddressOptions & { readonly withDefault: false; }): z.ZodType; export declare function listenAddressSchema(options: ListenAddressOptions): z.ZodDefault>; /** Render a listener address as a `tcp://` or `unix://` URL. */ export declare function formatListenAddress(address: ListenAddress): string;