import { AutomationTrigger, AutomationTriggerDefinition } from "../../../../../platform/github/common/missionControl/automations.js"; export interface IAutomationTriggerField { readonly name: string; readonly label: string; readonly scalar: boolean; readonly required: boolean; readonly options?: readonly string[]; } export type AutomationTriggerFamily = "issue" | "pullRequest"; interface IEvent { readonly name: string; readonly type: string; readonly family: AutomationTriggerFamily; readonly label: string; } export interface IAutomationTriggerChoice extends IEvent { readonly fields: readonly IAutomationTriggerField[]; } export interface IAutomationTriggerFieldGroup extends IAutomationTriggerField { readonly choices: readonly IAutomationTriggerChoice[]; } export declare function automationTriggerChoices(definitions: readonly AutomationTriggerDefinition[]): readonly IAutomationTriggerChoice[]; export declare function hasAutomationEventTrigger(triggers: Readonly>): boolean; export declare function automationTriggerFieldGroups(choices: readonly IAutomationTriggerChoice[]): readonly IAutomationTriggerFieldGroup[]; export declare function automationTriggerFamily(triggers: Readonly>): AutomationTriggerFamily | undefined; /** Keeps existing event entries intact when only the event selection changes. */ export declare function selectAutomationTriggerEvents(current: Readonly>, selected: readonly IAutomationTriggerChoice[]): Readonly>; export declare function canEditAutomationTriggers(triggers: Readonly>, choices: readonly IAutomationTriggerChoice[]): boolean; export declare function automationTriggerSummary(triggers: Readonly>, compact?: boolean): string | undefined; /** Returns undefined when the catalog requires controls this editor cannot represent. */ export declare function automationTriggerFields(definition: AutomationTriggerDefinition): readonly IAutomationTriggerField[] | undefined; export declare function normalizeAutomationTriggerField(field: IAutomationTriggerField, value: string | readonly string[]): string | readonly string[] | undefined; export declare function validateAutomationTriggerFields(fields: readonly IAutomationTriggerField[], trigger: AutomationTrigger): string | undefined; export {};