import type { Widget } from "./BaseBinderBuilder"; import type { CmdBinderBuilder } from "./CmdBinderBuilder"; import type { InteractionBinderBuilder } from "./InteractionBinderBuilder"; 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 InteractionCmdBinder, A, D extends object = InteractionDataType> extends CmdBinderBuilder, InteractionBinderBuilder { first(fn: (c: C, i: D, acc: A) => void): InteractionCmdBinder; ifHadEffects(fn: (c: C, i: D, acc: A) => void): InteractionCmdBinder; ifHadNoEffect(fn: (c: C, i: D, acc: A) => void): InteractionCmdBinder; ifCannotExecute(fn: (c: C, i: D, acc: A) => void): InteractionCmdBinder; end(fn: (c: C, i: D, acc: A) => void): InteractionCmdBinder; on(widget: ReadonlyArray> | Widget, ...widgets: ReadonlyArray>): InteractionCmdBinder; onDynamic(node: Widget): InteractionCmdBinder; log(...level: ReadonlyArray): InteractionCmdBinder; when(fn: (i: D, acc: Readonly) => boolean, mode?: WhenType): InteractionCmdBinder; stopImmediatePropagation(): InteractionCmdBinder; preventDefault(): InteractionCmdBinder; catch(fn: (ex: unknown) => void): InteractionCmdBinder; name(name: string): InteractionCmdBinder; configureRules(ruleName: RuleName, severity: Severity): InteractionCmdBinder; bind(): Binding; }