import { KeyCode } from './keycodes'; export declare const generateId: () => string; export declare function saveSelection(): Range; export declare function restoreSelection(range: Range): void; export declare function getCaretPosition(element: HTMLElement): number; export declare function placeCaretAtEnd(el: HTMLDivElement): void; export declare function cursorAtEnd(el: HTMLDivElement): boolean; export declare function cursorAtStart(el: HTMLDivElement): boolean; export declare function is(state: string): boolean; export declare function value(state: string): string; export declare function exec(command: string, value?: any): void; export declare function wrap(tag: string): void; export declare function getOffset(el: any): { top: number; left: number; }; export declare const colors: string[]; export declare const commands: ({ name: string; icon: string; shortcut: KeyCode[]; } | { name: string; icon: string; shortcut?: undefined; })[];