export declare function castEnum<O extends string>(value: `${O}`): O;
export declare function castOptionalEnum<O extends string>(value: `${O}` | undefined): O | undefined;
export type NonEmptyArray<T> = [T, ...T[]];
export declare function sureOf<T>(entity: T | null | undefined): NonNullable<T>;
export declare function sortUsingMap<T, K>(items: Array<T>, indexes: Map<K, number>, keyFn: (item: T) => K): Array<T>;
