import { type ObjectScoped, type ObjectReference } from "./custom-object.js"; import type { Field } from "../field.js"; import type { AnyCustomObjectDefinition, FieldValue } from "../../../core/platform/custom-objects/types.js"; import { Rule, type RuleProps, type RuleAction } from "../rule.js"; /** Flow actions accept shared writable field definitions as well as existing manifest fields. */ export type DefinedRuleAction = (Omit & { targetField: ObjectScoped; }) | (TObject extends AnyCustomObjectDefinition ? { [K in keyof TObject['fields']]: TypedRuleAction; }[keyof TObject['fields']] : never); export type DefineRecordTriggeredFlowProps = Omit & { apiName: `${string}__c`; actions?: readonly DefinedRuleAction>[]; }; export declare function defineRecordTriggeredFlow(object: TObject, props: DefineRecordTriggeredFlowProps): Rule; type TypedRuleAction = TField extends { writable: true; } ? { targetField: TField; fixedValue?: FieldValue; rqlFormula?: string; } : never; export {}; //# sourceMappingURL=record-triggered-flow.d.ts.map