declare type IdType = number | string | boolean; export interface MapItem { id: IdType; name: any; [key: string]: any; } interface OptionItem { value: any; label: any; } interface ToOptionOptions { include?: IdType[]; exclude?: IdType[]; } export interface MapArray extends Array { toOption: (options?: ToOptionOptions) => Array; findById: (id?: IdType) => MapItem; findByName: (name?: any) => MapItem; getName: (id?: IdType) => string | undefined; getId: (name?: any) => IdType | undefined; } declare const CreateEnumMap: (data: MapItem[]) => MapArray; export default CreateEnumMap;