1/** 2 * Copyright (c) 650 Industries. 3 * Copyright (c) Meta Platforms, Inc. and affiliates. 4 * 5 * This source code is licensed under the MIT license found in the 6 * LICENSE file in the root directory of this source tree. 7 */ 8import type { LogBoxLogData } from './LogBoxLog'; 9type ExceptionData = any; 10export type ExtendedExceptionData = ExceptionData & { 11 isComponentError: boolean; 12 [key: string]: any; 13}; 14export type Category = string; 15export type CodeFrame = { 16 content: string; 17 location?: { 18 row: number; 19 column: number; 20 [key: string]: any; 21 } | null; 22 fileName: string; 23 collapse?: boolean; 24}; 25export type Message = { 26 content: string; 27 substitutions: { 28 length: number; 29 offset: number; 30 }[]; 31}; 32export type ComponentStack = CodeFrame[]; 33export declare function parseInterpolation(args: readonly any[]): { 34 category: Category; 35 message: Message; 36}; 37export declare function parseComponentStack(message: string): ComponentStack; 38export declare function parseLogBoxException(error: ExtendedExceptionData): LogBoxLogData; 39export declare function parseLogBoxLog(args: readonly any[]): { 40 componentStack: ComponentStack; 41 category: Category; 42 message: Message; 43}; 44export {}; 45//# sourceMappingURL=parseLogBoxLog.d.ts.map