/**
 * @file 代码高亮
 */
import React from 'react';
import { BaseSchema } from '../Schema';
import { RendererProps } from '../factory';
/**
 * 代码高亮组件
 * 文档：https://baidu.gitee.io/amis/docs/components/code
 */
export interface CodeSchema extends BaseSchema {
    type: 'code';
    /**
     * 语言类型
     */
    language?: 'bat' | 'c' | 'coffeescript' | 'cpp' | 'csharp' | 'css' | 'dockerfile' | 'fsharp' | 'go' | 'handlebars' | 'html' | 'ini' | 'java' | 'javascript' | 'json' | 'less' | 'lua' | 'markdown' | 'msdax' | 'objective-c' | 'php' | 'plaintext' | 'postiats' | 'powershell' | 'pug' | 'python' | 'r' | 'razor' | 'ruby' | 'sb' | 'scss' | 'shell' | 'sol' | 'sql' | 'swift' | 'typescript' | 'vb' | 'xml' | 'yaml';
    editorTheme?: string;
    tabSize?: number;
}
export interface CodeProps extends RendererProps, Omit<CodeSchema, 'type' | 'className'> {
}
export default class Code extends React.Component<CodeProps> {
    static defaultProps: Partial<CodeProps>;
    editor: any;
    toDispose: Array<Function>;
    codeRef: React.RefObject<HTMLElement>;
    constructor(props: CodeProps);
    componentDidMount(): void;
    componentDidUpdate(preProps: CodeProps): void;
    handleMonaco(monaco: any): void;
    render(): JSX.Element;
}
export declare class CodeRenderer extends Code {
}
