/**
 * Submit handling aligned with openclaw: `!` local shell lines + paste burst coalescing
 * for terminals that split multiline paste into rapid single-line submits.
 */
export declare function createEditorSubmitHandler(params: {
    editor: {
        setText: (value: string) => void;
        addToHistory: (value: string) => void;
    };
    handleCommand: (value: string) => void | Promise<void>;
    sendMessage: (value: string) => void | Promise<void>;
    handleBangLine: (value: string) => void | Promise<void>;
    isAgentBusy?: () => boolean;
    steerWhileBusy?: (value: string) => void | Promise<void>;
}): (text: string) => void;
export declare function shouldEnableWindowsGitBashPasteFallback(params?: {
    platform?: string;
    env?: NodeJS.ProcessEnv;
}): boolean;
export declare function createSubmitBurstCoalescer(params: {
    submit: (value: string) => void;
    enabled: boolean;
    burstWindowMs?: number;
    now?: () => number;
    setTimer?: typeof setTimeout;
    clearTimer?: typeof clearTimeout;
}): (value: string) => void;
