/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { ComponentName, StateValue } from '../../../../@ecom/better-log-types/dist/types/common.d'; import { LogData, UIReaction, SystemLevel, UILogData, SystemLogData, ActionLogData } from '../../../../@ecom/better-log-types'; export interface UIContentProps { type: UILogData[0]; element: HTMLElement; reaction: UIReaction; componentName?: ComponentName; states?: { [key: string]: StateValue; }; options?: { animation?: boolean | Promise; }; } export interface SystemContentProps { type: SystemLogData[0]; event: string; level?: SystemLevel; module?: string; states?: { [key: string]: StateValue; }; } export interface ActionContentProps { type: ActionLogData[0]; event: Event | React.SyntheticEvent; componentName?: ComponentName; states?: { [key: string]: StateValue; }; } export declare type BetterLogContentProps = UIContentProps | SystemContentProps | ActionContentProps; export declare const betterLogData: (args: LogData) => void;