/**
 * File was automatically generated using json-schema-to-typescript.
 * DO NOT MODIFY IT BY HAND.
 * Instead, modify the source file https://formats.openag.io/trellis/rules/configured.schema.json of @oada/formats
 * and run `$ yarn build` to regenerate this file.
 */
/**
 * $id of the source schema
 * @see {@link https://formats.openag.io/trellis/rules/configured.schema.json}
 */
export declare const $id = "https://formats.openag.io/trellis/rules/configured.schema.json";
/**
 * Returns true if val is a @type Configured, false otherwise
 */
export declare function is(val: any): val is Configured;
/**
 * Asserts that val is a @type Configured
 */
export declare function assert(val: any): asserts val is Configured;
export default Configured;
/**
 * Representation of a constructed OADA rule for rules engine
 */
export interface Configured {
    /**
     * Wether this rule should be active
     * @default true
     */
    enabled?: boolean;
    /**
     * Array of the names of the services involved in this rule
     */
    services?: string[];
    /**
     * Content-type this rule applies to
     */
    type: string;
    /**
     * Whether to trigger on new item, changed item, etc.
     * @default "new"
     */
    on?: "new" | "change";
    /**
     * The path to an OADA list to which to apply this rule
     */
    path: string;
    /**
     * List of conditions involved in this rule
     */
    conditions: {
        /**
         * Particular condition involved in this rule
         */
        [k: string]: {
            /**
             * A link to the condition document
             */
            condition: {
                _id: string;
                _rev: string;
                [k: string]: unknown;
            };
            /**
             * Parameter values for this condition
             */
            options?: {
                [k: string]: unknown;
            };
            [k: string]: unknown;
        };
    };
    /**
     * List of actions involved in this rule
     */
    actions: {
        /**
         * Particular action involved in this rule
         */
        [k: string]: {
            /**
             * A link to the action document
             */
            action: {
                _id: string;
                _rev: string;
                [k: string]: unknown;
            };
            /**
             * Parameter values for this action
             */
            options?: {
                [k: string]: unknown;
            };
            [k: string]: unknown;
        };
    };
    [k: string]: unknown;
}
//# sourceMappingURL=configured.d.ts.map