import { Candidate } from '../types'; interface PreeditSegment { w?: string; pinyins: string[]; } export declare function recoverySegments(): void; export declare function getPreeditSegmentLength(seg: PreeditSegment): number; export declare function getPreeditSegmentsPinyinLength(): number; export declare function getPreeditSegmentsLength(): number; export declare function getUnconvertedPreeditSegmentText(): string; export declare function hasConvertedPreeditSegment(): boolean; export declare function getConvertedSegments(): PreeditSegment[]; export declare function replaceSegments(cand: Candidate): PreeditSegment[] | undefined; export declare function insertLetter(c: string): void; export declare function deleteLetter(): void; export declare function moveCursorPositionLeft(): void; export declare function moveCursorPositionRight(): void; export declare function moveCursorPositionEnd(): void; export declare function splitPreeditSegmentsByCursorPosition(): { front: string; behind: string; }; export declare function compositePreedit(): string; export declare function clearPreeditSegments(): void; export declare function getPreeditSegments(): PreeditSegment[]; export declare function getCursorPosition(): number; export declare function updatePreeditSegments(segments: PreeditSegment[]): void; export declare function createPreeditSegment(pinyin: string): { w: string; pinyins: string[]; }; export declare function preeditSegments2Text(): string; export declare function setupPreeditSegments(segments: PreeditSegment[], cursorPos?: number): void; export declare function forceUpdateCursorPosition(cursorPos: number): void; export {};