import { ArtifactIntegrationState } from "./artifactIntegrationStore.js"; import { ArtifactAutomationEnabledRules, ArtifactAutomationNotice, ArtifactAutomationNoticeChange } from "./artifactRuntime.js"; /** Describes each committed automation change of an artifact's binding in one notice. */ export declare function getArtifactAutomationNotices(previous: ArtifactIntegrationState, current: ArtifactIntegrationState): readonly ArtifactAutomationNotice[]; /** * Renders a notice as a one-line summary followed by the details that are * shown when it is expanded. Several changes are summarized by their count. */ export declare function formatArtifactAutomationNotice(artifactLabel: string, changes: readonly ArtifactAutomationNoticeChange[], enabledRules: readonly ArtifactAutomationEnabledRules[]): Pick; /** * Adds the changes of `next` to an earlier notice, keeping only the latest * change of each rule and the latest enabled rules of each integration. A rule * that was enabled in the earlier notice stays newly enabled when only its mode * changes. Returns `undefined` when the merged notice would exceed the limits * that its readers accept, so that the notices stay separate. */ export declare function mergeArtifactAutomationNotices(previous: Required>, next: Required>): Required> | undefined; /** Validates rule changes, each rule at most once. */ export declare function isArtifactAutomationNoticeChanges(value: unknown): value is readonly ArtifactAutomationNoticeChange[]; /** Validates enabled rules, each integration at most once. */ export declare function isArtifactAutomationEnabledRules(value: unknown): value is readonly ArtifactAutomationEnabledRules[]; /** Whether every integration of `changes` has its enabled rules, which structured notices require to render consistently. */ export declare function hasArtifactAutomationEnabledRules(changes: readonly ArtifactAutomationNoticeChange[], enabledRules: readonly ArtifactAutomationEnabledRules[]): boolean;