/** * Output of {@link makeEnum}. Captures both the original key→value * pairs (so `MY_ENUM.MY_KEY` is the literal string value) and the * helper properties (`name`, `VALUES`, `isValid`). */ export type EnumBundle>> = { readonly name: string; readonly VALUES: ReadonlyArray; readonly isValid: (value: unknown) => value is TValues[keyof TValues]; } & { readonly [K in keyof TValues]: TValues[K]; }; /** * Build a frozen enum bundle. * * @param name Human-readable name used in error messages. * @param values Object whose keys are the constant names and whose * string values are the wire representations. */ export declare function makeEnum>>(name: string, values: TValues): EnumBundle; //# sourceMappingURL=enum.d.ts.map