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