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