import type { Widget } from "./BaseBinderBuilder"; import type { CmdUpdateBinderBuilder } from "./CmdUpdateBinderBuilder"; import type { InteractionCmdBinder } from "./InteractionCmdBinder"; import type { InteractionUpdateBinderBuilder } from "./InteractionUpdateBinderBuilder"; import type { WhenType } from "./When"; import type { Binding } from "../binding/Binding"; import type { RuleName, Severity } from "../checker/Checker"; import type { Command } from "../command/Command"; import type { Interaction, InteractionDataType } from "../interaction/Interaction"; import type { LogLevel } from "../logging/LogLevel"; export interface InteractionCmdUpdateBinder, A, D extends object = InteractionDataType> extends InteractionCmdBinder, CmdUpdateBinderBuilder, InteractionUpdateBinderBuilder { then(fn: ((c: C, i: D, acc: A) => void) | ((c: C) => void)): InteractionCmdUpdateBinder; continuousExecution(): InteractionCmdUpdateBinder; throttle(timeout: number): InteractionCmdUpdateBinder; first(fn: (c: C, i: D, acc: A) => void): InteractionCmdUpdateBinder; on(widget: ReadonlyArray> | Widget, ...widgets: ReadonlyArray>): InteractionCmdUpdateBinder; onDynamic(node: Widget): InteractionCmdUpdateBinder; log(...level: ReadonlyArray): InteractionCmdUpdateBinder; cancel(fn: (i: D, acc: A) => void): InteractionCmdUpdateBinder; endOrCancel(fn: (i: D, acc: A) => void): InteractionCmdUpdateBinder; when(fn: (i: D, acc: Readonly) => boolean, mode?: WhenType): InteractionCmdUpdateBinder; ifHadEffects(fn: (c: C, i: D, acc: A) => void): InteractionCmdUpdateBinder; ifHadNoEffect(fn: (c: C, i: D, acc: A) => void): InteractionCmdUpdateBinder; ifCannotExecute(fn: (c: C, i: D, acc: A) => void): InteractionCmdUpdateBinder; end(fn: (c: C, i: D, acc: A) => void): InteractionCmdUpdateBinder; stopImmediatePropagation(): InteractionCmdUpdateBinder; preventDefault(): InteractionCmdUpdateBinder; catch(fn: (ex: unknown) => void): InteractionCmdUpdateBinder; name(name: string): InteractionCmdUpdateBinder; configureRules(ruleName: RuleName, severity: Severity): InteractionCmdUpdateBinder; bind(): Binding; }