import { default as orderRulesJsonSchema } from './json_schema/order_rules.json'; import { RulesForOrderContext } from './json_schema/order_rules.schema'; import { default as organizationConfigJsonSchema } from './json_schema/organization_config.json'; import { default as priceRulesJsonSchema } from './json_schema/price_rules.json'; export type RulesObject = RulesForOrderContext; type Rule = NonNullable[number]; export type SchemaCondition = NonNullable; export type SchemaActionItem = NonNullable[number]; export type SchemaConditionItem = NonNullable[number]; export type ActionType = Rule["actions"][number]["type"]; export interface SetPath { (path: string): SetPath; (path: string, pathValue: unknown, shouldForceUpdate?: boolean): RulesObject; } export type ConditionMatchersWithoutValue = Exclude["matcher"]; export declare const conditionMatchersWithoutValue: ["blank", "present", "null", "not_null"]; export type ItemWithValue = Exclude; export type JSONSchema = "none" | "order-rules" | "price-rules" | "organization-config"; export declare function fetchJsonSchema(jsonSchema: J, domain: string): Promise; /** * This function is used to ensure that a value of type `never` is never reached. * @param _value - The value that is expected to be of type `never`. */ export declare function expectNever(_value: never): null; export {};