import { z } from 'zod'; import { $ZodFunctionArgs, $ZodFunctionOut, util } from 'zod/v4/core'; export declare enum SupportedLanguage { Node = "node-ts", React = "react-ts" } export interface ConfigValue { value: { bool?: boolean; int?: number; json?: { json: string; }; logLevel?: string; schema?: { schema: string; schemaType: string; }; string?: string; }; } export interface SchemaFile { path: string; schema: Record; } export interface ConfigRow { values: ConfigValue[]; } export interface Config { configType: 'CONFIG' | 'FEATURE_FLAG' | 'SCHEMA'; key: string; rows: ConfigRow[]; schemaKey?: string; sendToClientSdk?: boolean; valueType: 'BOOL' | 'DOUBLE' | 'DURATION' | 'INT' | 'JSON' | 'LOG_LEVEL' | 'STRING' | 'STRING_LIST'; } export interface ConfigFile { configs: Config[]; schemas?: SchemaFile[]; } /** * Supported Zod schema types for codegen */ export type ZodTypeSupported = z.ZodAny | z.ZodArray | z.ZodBoolean | z.ZodDefault | z.ZodEnum | z.ZodFunction<$ZodFunctionArgs, $ZodFunctionOut> | z.ZodNull | z.ZodLiteral | z.ZodNumber | z.ZodObject | z.ZodOptional | z.ZodRecord | z.ZodNever | z.ZodString | z.ZodTuple | z.ZodUndefined | z.ZodUnion<[z.ZodTypeAny, ...z.ZodTypeAny[]]> | z.ZodUnknown | z.ZodNullable | z.ZodTypeAny;