import { ZodEnum, ZodNumber, ZodObject } from "zod"; //#region src/types.d.ts /** * Options for converting Zod schemas to protobuf definitions. */ interface ZodToProtobufOptions { /** Whether to add the warning declaration to the protobuf definition */ warningDeclaration?: boolean; /** Package name for the generated protobuf file */ packageName?: string; /** Name of the root message (default: "Message") */ rootMessageName?: string; /** Prefix to add to all generated type names */ typePrefix?: string; /** Service definitions to include in the protobuf output */ services?: any; /** Whether to skip generating the root message */ skipRootMessage?: boolean; } //#endregion //#region src/zod-to-protobuf.d.ts /** * Converts a Zod schema to a protobuf definition string. * Generates messages, enums, and services based on the provided schema and options. * * @param schema - Optional Zod schema to convert (if not provided, only services will be generated) * @param options - Options for protobuf generation including package name, root message name, type prefix, and services * @returns Complete protobuf definition string */ declare const zodToProtobufService: (options?: ZodToProtobufOptions) => string; //#endregion //#region src/utils.d.ts declare const getEnumByIndex: (schema: ZodEnum, index: any) => any; //#endregion export { getEnumByIndex, zodToProtobufService }; //# sourceMappingURL=index.d.mts.map