import { LogicRuleInterface, RuleFieldMapInterface, RuleInterface, ShieldRule } from "./types.mjs"; //#region src/shield/utils.d.ts /** * Makes sure that a certain field is a rule. */ declare function isRule>(x: any): x is RuleInterface; /** * Makes sure that a certain field is a logic rule. */ declare function isLogicRule>(x: any): x is LogicRuleInterface; /** * Makes sure that a certain field is a rule or a logic rule. */ declare function isRuleFunction>(x: any): x is ShieldRule; /** * Determines whether a certain field is rule field map or not. */ declare function isRuleFieldMap>(x: any): x is RuleFieldMapInterface; /** * Flattens object of particular type by checking if the leaf * evaluates to true from particular function. */ declare function flattenObjectOf(obj: { [key: string]: any; }, f: (x: any) => boolean): T[]; /** * Returns fallback is provided value is undefined */ declare function withDefault(fallback: T): (value: T | undefined) => T; //#endregion export { flattenObjectOf, isLogicRule, isRule, isRuleFieldMap, isRuleFunction, withDefault }; //# sourceMappingURL=utils.d.mts.map