import { type TypeInfo } from './types.js'; /** * Extracts all set enum flags from a given value. * * @returns An array of enum keys (names) that are set in the given flags value * * @example * enum Permissions { * Read = 1, * Write = 2, * Execute = 4 * } * const flags = Permissions.Read | Permissions.Write; * const setFlags = getSetFlags({ flags, enumObject: Permissions }); * console.log(setFlags); // Output: ["Read", "Write"] */ export declare function getSetFlags>({ flags, enumObject, }: { /** * The flags value to check */ flags: number; /** * The enum object to check against */ enumObject: T; }): Array; export declare function assertTypeInfo(typeInfo: TypeInfo, type: T): asserts typeInfo is Extract; //# sourceMappingURL=utils.d.ts.map