export type UniEditorFocusEventDetail = {
    html: string;
    text: string;
    delta: any;
};
export class UniEditorFocusEvent extends UniCustomEvent<UniEditorFocusEventDetail> {
    constructor(html: string, text: string, delta: any);
}
export type UniEditorBlurEventDetail = {
    html: string;
    text: string;
    delta: any;
};
export class UniEditorBlurEvent extends UniCustomEvent<UniEditorBlurEventDetail> {
    constructor(html: string, text: string, delta: any);
}
export type UniEditorInputEventDetail = {
    html: string;
    text: string;
    delta: any;
};
export class UniEditorInputEvent extends UniCustomEvent<UniEditorInputEventDetail> {
    constructor(html: string, text: string, delta: any);
}
export type UniEditorStatusChangeEventDetail = {
    bold?: boolean | null;
    italic?: boolean | null;
    underline?: boolean | null;
    strike?: boolean | null;
    blockquote?: boolean | null;
    align?: string | null;
    lineHeight?: string | null;
    letterSpacing?: string | null;
    marginTop?: string | null;
    marginBottom?: string | null;
    fontFamily?: string | null;
    fontSize?: string | null;
    color?: string | null;
    backgroundColor?: string | null;
    list?: string | null;
    header?: number | null;
    script?: string | null;
    direction?: string | null;
};
export class UniEditorStatusChangeEvent extends UniCustomEvent<UniEditorStatusChangeEventDetail> {
    constructor(formats: UniEditorStatusChangeEventDetail);
}
type UniEditorElementOptionsSuccessRes = {
    errMsg: string;
};
type UniEditorElementOptionsFailRes = {
    errMsg: string;
};
type UniEditorElementOptionsCompleteRes = {
    errMsg: string;
};
type UniEditorElementOptions = {
    success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementInsertImageOptions = {
    src?: string | null;
    alt?: string | null;
    width?: string | null;
    height?: string | null;
    extClass?: string | null;
    data?: any | null;
    success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementInsertTextOptions = {
    text?: string | null;
    success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementInsertLinkOptions = {
    text?: string | null;
    href?: string | null;
    success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementSetContentsOptions = {
    delta?: any | null;
    html?: string | null;
    success?: ((res: UniEditorElementOptionsSuccessRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementGetSelectionTextOptionsRes = {
    errMsg: string;
    text: string;
};
type UniEditorElementGetSelectionTextOptions = {
    success?: ((res: UniEditorElementGetSelectionTextOptionsRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
type UniEditorElementGetContentsOptionsRes = {
    errMsg: string;
    delta: any;
    html: string;
    text: string;
};
type UniEditorElementGetContentsOptions = {
    success?: ((res: UniEditorElementGetContentsOptionsRes) => void) | null;
    fail?: ((res: UniEditorElementOptionsFailRes) => void) | null;
    complete?: ((res: UniEditorElementOptionsCompleteRes) => void) | null;
};
export class UniEditorElement extends UniViewElementImpl {
    tagName: string;
    nodeName: string;
    vm: any;
    /**
     * 格式化文本
     * @param name format name
     * @param value format value, optional, default is null
     */
    format(name: string, value?: string | number | null): void;
    /**
     * 插入分割线
     * @param options 回调选项 { success, fail, complete }
     */
    insertDivider(options: UniEditorElementOptions | null): void;
    /**
     * 插入图片
     * @param options 图片选项 { src, alt, width, height, extClass, data, success, fail, complete }
     */
    insertImage(options: UniEditorElementInsertImageOptions | null): void;
    /**
     * 插入文本
     * @param options 文本选项 { text, success, fail, complete }
     */
    insertText(options: UniEditorElementInsertTextOptions | null): void;
    /**
     * 插入链接
     * @param options 链接选项 { text, href, success, fail, complete }
     */
    insertLink(options: UniEditorElementInsertLinkOptions | null): void;
    /**
     * 设置内容
     * @param options 内容选项 { delta, html, success, fail, complete }
     */
    setContents(options: UniEditorElementSetContentsOptions | null): void;
    /**
     * 获取内容
     * @param options 回调选项 { success, fail, complete }
     * @returns 在 success 回调中返回 { html, text, delta }
     */
    getContents(options: UniEditorElementGetContentsOptions | null): void;
    /**
     * 清空内容
     * @param options 回调选项 { success, fail, complete }
     */
    clear(options: UniEditorElementOptions | null): void;
    /**
     * 移除格式
     * @param options 回调选项 { success, fail, complete }
     */
    removeFormat(options: UniEditorElementOptions | null): void;
    /**
     * 撤销
     * @param options 回调选项 { success, fail, complete }
     */
    undo(options: UniEditorElementOptions | null): void;
    /**
     * 重做
     * @param options 回调选项 { success, fail, complete }
     */
    redo(options: UniEditorElementOptions | null): void;
    /**
     * 失去焦点
     * TODO 和基类冲突，不支持 success 等回调
     */
    blur(): void;
    /**
     * 获取选中文本
     * @param options 回调选项 { success, fail, complete }
     * @returns 在 success 回调中返回 { text }
     */
    getSelectionText(options: UniEditorElementGetSelectionTextOptions | null): void;
    /**
     * 滚动到可视区域
     * @param options 回调选项 { success, fail, complete }
     */
    scrollIntoView(options: UniEditorElementOptions | null): void;
}
export {};
