import z from 'zod'; export declare enum MessageType { UnitsChanged = "unitsChanged" } type ZodTopic = z.ZodLiteral; type ZodTopicDefault = z.ZodLiteral; export declare namespace InputMessages { const UnitsChanged: (additionalFields?: Obj, topic?: Topic) => z.ZodObject<{ topic: Topic; payload: z.ZodObject<{ type: z.ZodLiteral; txLog: z.ZodObject<{ rootUnitId: z.ZodString; changes: z.ZodArray; owner: z.ZodString; volume: z.ZodNumber; unitId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; } & Obj extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$loose>; }, z.core.$strip>; /** * @deprecated * * This is exactly the same type as Voting, but lacks `type: UnitsChanged`. * It is used by source-validator, and should not be used by anything else. SourceValidator adds `type` for rest of nodes. * It is used for backwards compatibility for changes in protocol that add "type" to a message. * It could be in kafka-proxy instead, but kafka-proxy should not unpack messages. * Additionally, having it in worker allows us to smoothly remove it in future, after GGP is upgraded everywhere. */ const UnitsChangedCompatibility: (additionalFields?: Obj, topic?: Topic) => z.ZodObject<{ topic: Topic; payload: z.ZodObject<{ txLog: z.ZodObject<{ rootUnitId: z.ZodString; changes: z.ZodArray; owner: z.ZodString; volume: z.ZodNumber; unitId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; } & Obj extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$loose>; }, z.core.$strip>; } export {};