import { ValveSection, RuleType } from './config-permission'; /** * Validates a rule. Makes sure that the rule is either a boolean or a string, * that it doesn't contain the new keyword or unsupported function invocations * and that it can be compiled into a javascript function */ export declare const validate: (rule: string | boolean, section: ValveSection, type: RuleType) => boolean | string; /** * Cross References: * * Cross references are denoted with an underscore function _() * They can take path variables: _($someId) * variables from data: _(data.someValue) * or strings: _('user/egon') */ export declare const parse: (rule: boolean | string, variables: any) => any;