export type CodeElement = {
    type: string;
    language?: string | null;
    render?: boolean;
    value: any;
    isConfig?: boolean;
    children: Array<{
        text: string;
    }>;
    otherProps?: Record<string, any>;
};
export type LanguageHandler = (element: CodeElement, value: string) => CodeElement;
/**
 * 处理代码块节点
 * @param currentElement - 当前处理的代码块元素，包含语言和内容
 * @param config - 可选的配置对象，可能包含从 HTML 注释中解析的属性
 * @returns 返回格式化的代码块节点对象，根据语言类型进行特殊处理
 */
export declare const handleCode: (currentElement: any, config?: any) => CodeElement;
/**
 * 处理YAML节点
 * @param currentElement - 当前处理的YAML元素
 * @returns 返回格式化的YAML代码块节点对象
 */
export declare const handleYaml: (currentElement: any) => {
    type: string;
    language: string;
    value: any;
    frontmatter: boolean;
    children: {
        text: any;
    }[];
};
