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