/** * amis 运行时调试功能,为了避免循环引用,这个组件不要依赖 amis 里的组件 */ import React, { Component } from 'react'; export declare const JsonView: React.LazyExoticComponent>; export declare function enableDebug(): void; export declare function disableDebug(): void; interface DebugWrapperProps { renderer: any; children?: React.ReactNode; } export declare class DebugWrapper extends Component { debugId: string; componentDidMount(): void; componentDidUpdate(prevProps: DebugWrapperProps): void; componentWillUnmount(): void; render(): React.ReactNode; } type Category = 'api' | 'event' | 'action' | 'debug' | 'error'; export declare function safeStringify(data: any): any; /** * 一般调试日志 * @param msg 简单消息 * @param ext 扩展信息 */ export declare function debug(cat: Category, msg: string, ext?: any): void; /** * 警告日志 * @param msg 简单消息 * @param ext 扩展信息 */ export declare function warning(cat: Category, msg: string, ext?: any): void; export declare function traceProps(props: any, prevProps: any, componentName: string): void; export {};