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