import { proto3 } from '@bufbuild/protobuf';

export function getEnumProtoName<T>(enumType: T, value: number): string | undefined {
  return proto3.getEnumType(enumType as any).findNumber(value)?.name; // eslint-disable-line @typescript-eslint/no-explicit-any
}
