import type { BridgeSelectionSnapshot, InteractionEventPayload } from "../bridge/protocol";
export type BridgeTextCompletionInput = {
    rawValue: string;
    isRichText: boolean;
    selectedText: string;
    liveSelectedText?: string;
    selectionStartOffset?: number;
    selectionEndOffset?: number;
    liveSelectionStartOffset?: number;
    liveSelectionEndOffset?: number;
    snapshotSelectionStartOffset?: number;
    snapshotSelectionEndOffset?: number;
    contextBefore?: string;
    contextAfter?: string;
};
export type ResolvedBridgeTextCompletionInput = {
    value: string;
    requestSelectionStart: number;
    requestSelectionEnd: number;
    commandSelectionStart: number;
    commandSelectionEnd: number;
    commandSelectedText?: string;
};
export declare function bridgeSelectionMatchesInteraction(selection: BridgeSelectionSnapshot | undefined, interaction: InteractionEventPayload): boolean;
export declare function resolveBridgeTextCompletionInput({ rawValue, isRichText, selectedText, liveSelectedText, selectionStartOffset, selectionEndOffset, liveSelectionStartOffset, liveSelectionEndOffset, snapshotSelectionStartOffset, snapshotSelectionEndOffset, contextBefore, contextAfter, }: BridgeTextCompletionInput): ResolvedBridgeTextCompletionInput;
