import { KafkaJS } from "@confluentinc/kafka-javascript"; /** * Hand-listed to stay in lockstep with the {@link KafkaJS.ConsumerGroupStates} * numeric enum in `@confluentinc/kafka-javascript/types/rdkafka.d.ts`. Not * derived via `Object.values(KafkaJS.ConsumerGroupStates)` because TypeScript * reverse-maps numeric enums and would surface both names and numbers, which * Zod's `z.enum` rejects. The companion pin test in * `consumer-group-enums.test.ts` enforces drift detection against the upstream * enum. */ export declare const STATE_NAMES: readonly ["Unknown", "PreparingRebalance", "CompletingRebalance", "Stable", "Dead", "Empty"]; /** * Hand-listed to stay in lockstep with the {@link KafkaJS.ConsumerGroupTypes} * numeric enum (see {@link STATE_NAMES} for why we don't derive). The * `UNKNOWN` slot is deliberately excluded from the input vocabulary — * it's the "no value reported" sentinel rather than a queryable protocol * type. */ export declare const TYPE_NAMES: readonly ["Classic", "Consumer"]; export type StateName = (typeof STATE_NAMES)[number]; export type TypeName = (typeof TYPE_NAMES)[number]; /** * Zod-input name → numeric enum value forwarded to `admin.listGroups`. * Used by the `list-consumer-groups` filter; pinned by a test asserting * coverage against the upstream {@link KafkaJS.ConsumerGroupStates} enum. */ export declare const STATE_NAME_TO_ENUM: Readonly>; /** * Zod-input name → numeric enum value forwarded to `admin.listGroups`. * Pinned by a test asserting coverage against the upstream * {@link KafkaJS.ConsumerGroupTypes} enum (minus the `UNKNOWN` slot, * which is deliberately excluded — see {@link TYPE_NAMES}). */ export declare const TYPE_NAME_TO_ENUM: Readonly>; /** * Map a numeric librdkafka state enum back to the TitleCase wire string. An * unrecognized value is "Wacky --" territory — log it and fall through to * `"Unknown"` rather than synthesize a stringified number. */ export declare function stateName(value: KafkaJS.ConsumerGroupStates): StateName; /** * Map a numeric librdkafka type enum back to the TitleCase wire string. The * librdkafka enum has an `UNKNOWN = 0` slot that is not part of the Zod * input vocabulary; surface it as the literal `"Unknown"` so callers see a * stable string rather than a number. */ export declare function typeName(value: KafkaJS.ConsumerGroupTypes): string; //# sourceMappingURL=consumer-group-enums.d.ts.map