@animaapp/anima-sdk 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export declare type BaseResult = {
50
50
  sessionId: string;
51
51
  figmaFileName: string;
52
52
  figmaSelectedFrameName: string;
53
+ tokenUsage: number;
53
54
  };
54
55
 
55
56
  export declare class CodegenError extends Error {
@@ -78,6 +79,9 @@ export declare type CodegenSettings = {
78
79
  uiLibrary?: "mui" | "antd" | "radix" | "shadcn";
79
80
  enableTranslation?: boolean;
80
81
  enableUILibraryTheming?: boolean;
82
+ enableCompactStructure?: boolean;
83
+ enableAutoSplit?: boolean;
84
+ autoSplitThreshold?: number;
81
85
  };
82
86
 
83
87
  /**
@@ -223,6 +227,11 @@ export declare type GetFileParams = {
223
227
  figmaRestApi?: FigmaRestApi;
224
228
  };
225
229
 
230
+ export declare const getRelatedScreenFiles: ({ files, screenPath, }: {
231
+ files: AnimaFiles;
232
+ screenPath?: string;
233
+ }) => AnimaFiles;
234
+
226
235
  export declare const handleFigmaApiError: (error: FigmaApiError, fileKey: string) => never;
227
236
 
228
237
  export declare const isFigmaTokenIssue: (error: Error) => boolean;
@@ -286,6 +295,10 @@ export declare type SSECodgenMessage = {
286
295
  payload: SSECodgenMessageErrorPayload;
287
296
  } | {
288
297
  type: "done";
298
+ payload: {
299
+ sessionId: string;
300
+ tokenUsage: number;
301
+ };
289
302
  };
290
303
 
291
304
  export declare type SSECodgenMessageErrorPayload = {