@layerfi/components 0.1.76 → 0.1.78

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
@@ -1,36 +1,24 @@
1
- declare module '@layerfi/components/api/layer/authenticate' {
2
- import { OAuthResponse } from '@layerfi/components/types';
3
- type AuthenticationArguments = {
4
- appId: string;
5
- appSecret: string;
6
- authenticationUrl?: string;
7
- scope: string;
8
- };
9
- export const authenticate: ({ appId, appSecret, authenticationUrl, scope, }: AuthenticationArguments) => () => Promise<OAuthResponse>;
10
- export {};
11
-
12
- }
13
1
  declare module '@layerfi/components/api/layer/authenticated_http' {
14
2
  export type HTTPVerb = 'get' | 'put' | 'post' | 'patch' | 'options' | 'delete';
15
3
  export const get: <Return extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
16
- params?: Params | undefined;
17
- } | undefined) => () => Promise<Return>;
18
- export const request: (verb: HTTPVerb) => <Return extends Record<string, unknown> = Record<string, unknown>, Body_1 extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
19
- params?: Params | undefined;
20
- body?: Body_1 | undefined;
21
- } | undefined) => Promise<Return>;
22
- export const post: <Return extends Record<string, unknown> = Record<string, unknown>, Body_1 extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
23
- params?: Params | undefined;
24
- body?: Body_1 | undefined;
25
- } | undefined) => Promise<Return>;
26
- export const put: <Return extends Record<string, unknown> = Record<string, unknown>, Body_1 extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
27
- params?: Params | undefined;
28
- body?: Body_1 | undefined;
29
- } | undefined) => Promise<Return>;
30
- export const deleteRequest: <Return extends Record<string, unknown> = Record<string, unknown>, Body_1 extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
31
- params?: Params | undefined;
32
- body?: Body_1 | undefined;
33
- } | undefined) => Promise<Return>;
4
+ params?: Params;
5
+ }) => () => Promise<Return>;
6
+ export const request: (verb: HTTPVerb) => <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
7
+ params?: Params;
8
+ body?: Body;
9
+ }) => Promise<Return>;
10
+ export const post: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
11
+ params?: Params;
12
+ body?: Body;
13
+ }) => Promise<Return>;
14
+ export const put: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
15
+ params?: Params;
16
+ body?: Body;
17
+ }) => Promise<Return>;
18
+ export const deleteRequest: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
19
+ params?: Params;
20
+ body?: Body;
21
+ }) => Promise<Return>;
34
22
  export const postWithFormData: <Return extends Record<string, unknown> = Record<string, unknown>>(url: string, formData: FormData, baseUrl: string, accessToken: string | undefined) => Promise<Return>;
35
23
 
36
24
  }
@@ -102,7 +90,7 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
102
90
  export const getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
103
91
  params?: Record<string, string | undefined> | undefined;
104
92
  } | undefined) => () => Promise<{
105
- data?: S3PresignedUrl | undefined;
93
+ data?: S3PresignedUrl;
106
94
  error?: unknown;
107
95
  }>;
108
96
  export const getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -136,10 +124,10 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
136
124
  params?: Record<string, string | undefined> | undefined;
137
125
  body?: Record<string, unknown> | undefined;
138
126
  } | undefined) => Promise<{
139
- data: {};
127
+ data: Record<never, never>;
140
128
  errors: unknown;
141
129
  }>;
142
- export const uploadBankTransactionDocument: (baseUrl: string, accessToken: string) => ({ businessId, bankTransactionId, file, documentType, }: {
130
+ export const uploadBankTransactionDocument: (baseUrl: string, accessToken?: string) => ({ businessId, bankTransactionId, file, documentType, }: {
143
131
  businessId: string;
144
132
  bankTransactionId: string;
145
133
  file: File;
@@ -165,7 +153,7 @@ declare module '@layerfi/components/api/layer/categories' {
165
153
  params?: Record<string, string | undefined> | undefined;
166
154
  } | undefined) => () => Promise<{
167
155
  data: {
168
- type: 'Category_List';
156
+ type: "Category_List";
169
157
  categories: Category[];
170
158
  };
171
159
  }>;
@@ -225,7 +213,7 @@ declare module '@layerfi/components/api/layer/journal' {
225
213
  export const reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
226
214
  params?: Record<string, string | undefined> | undefined;
227
215
  body?: Record<string, unknown> | undefined;
228
- } | undefined) => Promise<{}>;
216
+ } | undefined) => Promise<Record<never, never>>;
229
217
 
230
218
  }
231
219
  declare module '@layerfi/components/api/layer/linked_accounts' {
@@ -249,20 +237,40 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
249
237
  } | undefined) => () => Promise<{
250
238
  data: LinkedAccounts;
251
239
  }>;
252
- export const confirmConnection: (baseUrl: string, accessToken: string | undefined, options?: {
240
+ export const confirmAccount: (baseUrl: string, accessToken: string | undefined, options?: {
253
241
  params?: {
254
242
  businessId: string;
255
243
  accountId: string;
256
244
  } | undefined;
257
- body?: Record<string, unknown> | undefined;
258
- } | undefined) => Promise<Record<string, unknown>>;
259
- export const denyConnection: (baseUrl: string, accessToken: string | undefined, options?: {
245
+ body?: ({
246
+ is_unique: true;
247
+ } & Partial<{
248
+ is_unique: boolean;
249
+ is_relevant: boolean;
250
+ }> & {}) | ({
251
+ is_relevant: true;
252
+ } & Partial<{
253
+ is_unique: boolean;
254
+ is_relevant: boolean;
255
+ }> & {}) | undefined;
256
+ } | undefined) => Promise<never>;
257
+ export const excludeAccount: (baseUrl: string, accessToken: string | undefined, options?: {
260
258
  params?: {
261
259
  businessId: string;
262
260
  accountId: string;
263
261
  } | undefined;
264
- body?: Record<string, unknown> | undefined;
265
- } | undefined) => Promise<Record<string, unknown>>;
262
+ body?: ({
263
+ is_irrelevant: true;
264
+ } & Partial<{
265
+ is_irrelevant: boolean;
266
+ is_duplicate: boolean;
267
+ }> & {}) | ({
268
+ is_duplicate: true;
269
+ } & Partial<{
270
+ is_irrelevant: boolean;
271
+ is_duplicate: boolean;
272
+ }> & {}) | undefined;
273
+ } | undefined) => Promise<never>;
266
274
  export const unlinkConnection: (baseUrl: string, accessToken: string | undefined, options?: {
267
275
  params?: {
268
276
  businessId: string;
@@ -287,7 +295,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
287
295
  body?: Record<string, unknown> | undefined;
288
296
  } | undefined) => Promise<{
289
297
  data: {
290
- type: 'Link_Token';
298
+ type: "Link_Token";
291
299
  link_token: string;
292
300
  };
293
301
  }>;
@@ -298,7 +306,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
298
306
  body?: Record<string, unknown> | undefined;
299
307
  } | undefined) => Promise<{
300
308
  data: {
301
- type: 'Link_Token';
309
+ type: "Link_Token";
302
310
  link_token: string;
303
311
  };
304
312
  }>;
@@ -331,33 +339,33 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
331
339
  export const getProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
332
340
  params?: Record<string, string | undefined> | undefined;
333
341
  } | undefined) => () => Promise<{
334
- data?: ProfitAndLoss | undefined;
342
+ data?: ProfitAndLoss;
335
343
  error?: unknown;
336
344
  }>;
337
345
  export const compareProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
338
346
  params?: Record<string, string | undefined> | undefined;
339
347
  body?: Record<string, unknown> | undefined;
340
348
  } | undefined) => Promise<{
341
- data?: ProfitAndLossComparison | undefined;
349
+ data?: ProfitAndLossComparison;
342
350
  error?: unknown;
343
351
  }>;
344
352
  export const getProfitAndLossSummaries: (baseUrl: string, accessToken: string | undefined, options?: {
345
353
  params?: Record<string, string | undefined> | undefined;
346
354
  } | undefined) => () => Promise<{
347
- data?: ProfitAndLossSummaries | undefined;
355
+ data?: ProfitAndLossSummaries;
348
356
  error?: unknown;
349
357
  }>;
350
358
  export const getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
351
359
  params?: Record<string, string | undefined> | undefined;
352
360
  } | undefined) => () => Promise<{
353
- data?: S3PresignedUrl | undefined;
361
+ data?: S3PresignedUrl;
354
362
  error?: unknown;
355
363
  }>;
356
364
  export const profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
357
365
  params?: Record<string, string | undefined> | undefined;
358
366
  body?: Record<string, unknown> | undefined;
359
367
  } | undefined) => Promise<{
360
- data?: S3PresignedUrl | undefined;
368
+ data?: S3PresignedUrl;
361
369
  error?: unknown;
362
370
  }>;
363
371
 
@@ -384,7 +392,7 @@ declare module '@layerfi/components/api/layer/quickbooks' {
384
392
  body?: Record<string, unknown> | undefined;
385
393
  } | undefined) => Promise<{
386
394
  data: {
387
- type: 'Quickbooks_Authorization_Params';
395
+ type: "Quickbooks_Authorization_Params";
388
396
  redirect_url: string;
389
397
  };
390
398
  }>;
@@ -444,7 +452,7 @@ declare module '@layerfi/components/api/layer/tasks' {
444
452
  } | undefined) => Promise<{
445
453
  data: TaskTypes;
446
454
  }>;
447
- export const completeTaskWithUpload: (baseUrl: string, accessToken: string) => ({ businessId, taskId, file, }: {
455
+ export const completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, file, }: {
448
456
  businessId: string;
449
457
  taskId: string;
450
458
  file: File;
@@ -456,12 +464,6 @@ declare module '@layerfi/components/api/layer/tasks' {
456
464
  }
457
465
  declare module '@layerfi/components/api/layer' {
458
466
  export const Layer: {
459
- authenticate: ({ appId, appSecret, authenticationUrl, scope, }: {
460
- appId: string;
461
- appSecret: string;
462
- authenticationUrl?: string | undefined;
463
- scope: string;
464
- }) => () => Promise<import("@layerfi/components/types").OAuthResponse>;
465
467
  getBusiness: (baseUrl: string, accessToken: string | undefined, options?: {
466
468
  params?: Record<string, string | undefined> | undefined;
467
469
  } | undefined) => () => Promise<{
@@ -505,7 +507,7 @@ declare module '@layerfi/components/api/layer' {
505
507
  getBankTransactionsCsv: (baseUrl: string, accessToken: string | undefined, options?: {
506
508
  params?: Record<string, string | undefined> | undefined;
507
509
  } | undefined) => () => Promise<{
508
- data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
510
+ data?: import("@layerfi/components/types/general").S3PresignedUrl;
509
511
  error?: unknown;
510
512
  }>;
511
513
  getBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -530,7 +532,7 @@ declare module '@layerfi/components/api/layer' {
530
532
  params?: Record<string, string | undefined> | undefined;
531
533
  body?: Record<string, unknown> | undefined;
532
534
  } | undefined) => Promise<{
533
- data: {};
535
+ data: Record<never, never>;
534
536
  errors: unknown;
535
537
  }>;
536
538
  updateBankTransactionMetadata: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -542,7 +544,7 @@ declare module '@layerfi/components/api/layer' {
542
544
  data: import("@layerfi/components/types/bank_transactions").BankTransactionMetadata;
543
545
  errors: unknown;
544
546
  }>;
545
- uploadBankTransactionDocument: (baseUrl: string, accessToken: string) => ({ businessId, bankTransactionId, file, documentType, }: {
547
+ uploadBankTransactionDocument: (baseUrl: string, accessToken?: string) => ({ businessId, bankTransactionId, file, documentType, }: {
546
548
  businessId: string;
547
549
  bankTransactionId: string;
548
550
  file: File;
@@ -582,19 +584,19 @@ declare module '@layerfi/components/api/layer' {
582
584
  getProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
583
585
  params?: Record<string, string | undefined> | undefined;
584
586
  } | undefined) => () => Promise<{
585
- data?: import("@layerfi/components/types").ProfitAndLoss | undefined;
587
+ data?: import("@layerfi/components/types").ProfitAndLoss;
586
588
  error?: unknown;
587
589
  }>;
588
590
  getProfitAndLossSummaries: (baseUrl: string, accessToken: string | undefined, options?: {
589
591
  params?: Record<string, string | undefined> | undefined;
590
592
  } | undefined) => () => Promise<{
591
- data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries | undefined;
593
+ data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossSummaries;
592
594
  error?: unknown;
593
595
  }>;
594
596
  getProfitAndLossCsv: (baseUrl: string, accessToken: string | undefined, options?: {
595
597
  params?: Record<string, string | undefined> | undefined;
596
598
  } | undefined) => () => Promise<{
597
- data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
599
+ data?: import("@layerfi/components/types/general").S3PresignedUrl;
598
600
  error?: unknown;
599
601
  }>;
600
602
  getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -612,19 +614,19 @@ declare module '@layerfi/components/api/layer' {
612
614
  reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
613
615
  params?: Record<string, string | undefined> | undefined;
614
616
  body?: Record<string, unknown> | undefined;
615
- } | undefined) => Promise<{}>;
617
+ } | undefined) => Promise<Record<never, never>>;
616
618
  compareProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
617
619
  params?: Record<string, string | undefined> | undefined;
618
620
  body?: Record<string, unknown> | undefined;
619
621
  } | undefined) => Promise<{
620
- data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparison | undefined;
622
+ data?: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparison;
621
623
  error?: unknown;
622
624
  }>;
623
625
  profitAndLossComparisonCsv: (baseUrl: string, accessToken: string | undefined, options?: {
624
626
  params?: Record<string, string | undefined> | undefined;
625
627
  body?: Record<string, unknown> | undefined;
626
628
  } | undefined) => Promise<{
627
- data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
629
+ data?: import("@layerfi/components/types/general").S3PresignedUrl;
628
630
  error?: unknown;
629
631
  }>;
630
632
  createJournalEntries: (baseUrl: string, accessToken: string | undefined, options?: {
@@ -675,26 +677,46 @@ declare module '@layerfi/components/api/layer' {
675
677
  } | undefined;
676
678
  body?: Record<string, unknown> | undefined;
677
679
  } | undefined) => Promise<Record<string, unknown>>;
678
- confirmConnection: (baseUrl: string, accessToken: string | undefined, options?: {
680
+ confirmAccount: (baseUrl: string, accessToken: string | undefined, options?: {
679
681
  params?: {
680
682
  businessId: string;
681
683
  accountId: string;
682
684
  } | undefined;
683
- body?: Record<string, unknown> | undefined;
684
- } | undefined) => Promise<Record<string, unknown>>;
685
- denyConnection: (baseUrl: string, accessToken: string | undefined, options?: {
685
+ body?: ({
686
+ is_unique: true;
687
+ } & Partial<{
688
+ is_unique: boolean;
689
+ is_relevant: boolean;
690
+ }> & {}) | ({
691
+ is_relevant: true;
692
+ } & Partial<{
693
+ is_unique: boolean;
694
+ is_relevant: boolean;
695
+ }> & {}) | undefined;
696
+ } | undefined) => Promise<never>;
697
+ excludeAccount: (baseUrl: string, accessToken: string | undefined, options?: {
686
698
  params?: {
687
699
  businessId: string;
688
700
  accountId: string;
689
701
  } | undefined;
690
- body?: Record<string, unknown> | undefined;
691
- } | undefined) => Promise<Record<string, unknown>>;
702
+ body?: ({
703
+ is_irrelevant: true;
704
+ } & Partial<{
705
+ is_irrelevant: boolean;
706
+ is_duplicate: boolean;
707
+ }> & {}) | ({
708
+ is_duplicate: true;
709
+ } & Partial<{
710
+ is_irrelevant: boolean;
711
+ is_duplicate: boolean;
712
+ }> & {}) | undefined;
713
+ } | undefined) => Promise<never>;
692
714
  getTasks: (baseUrl: string, accessToken: string | undefined, options?: {
693
715
  params?: Record<string, string | undefined> | undefined;
694
716
  } | undefined) => () => Promise<{
695
717
  data: import("@layerfi/components/types/tasks").TaskTypes[];
696
718
  }>;
697
- completeTaskWithUpload: (baseUrl: string, accessToken: string) => ({ businessId, taskId, file, }: {
719
+ completeTaskWithUpload: (baseUrl: string, accessToken?: string) => ({ businessId, taskId, file, }: {
698
720
  businessId: string;
699
721
  taskId: string;
700
722
  file: File;
@@ -771,10 +793,6 @@ declare module '@layerfi/components/api/layer' {
771
793
  } | undefined) => Promise<Record<string, unknown>>;
772
794
  };
773
795
 
774
- }
775
- declare module '@layerfi/components/api/util' {
776
- export const formStringFromObject: (object: Record<string, string | number | boolean>) => string;
777
-
778
796
  }
779
797
  declare module '@layerfi/components/components/ActionableList/ActionableList' {
780
798
  import React from 'react';
@@ -934,7 +952,7 @@ declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTab
934
952
  export const BalanceSheetTable: ({ data, config, stringOverrides, }: {
935
953
  data: BalanceSheet;
936
954
  config: BalanceSheetRowProps[];
937
- stringOverrides?: BalanceSheetTableStringOverrides | undefined;
955
+ stringOverrides?: BalanceSheetTableStringOverrides;
938
956
  }) => React.JSX.Element;
939
957
  export {};
940
958
 
@@ -1061,7 +1079,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1061
1079
  selectedId?: string;
1062
1080
  showTooltips: boolean;
1063
1081
  }
1064
- export const BusinessCategories: ({ select, selectedId, showTooltips }: BusinessCategoriesProps) => React.JSX.Element;
1082
+ export const BusinessCategories: ({ select, selectedId, showTooltips, }: BusinessCategoriesProps) => React.JSX.Element;
1065
1083
 
1066
1084
  }
1067
1085
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
@@ -1082,8 +1100,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/MatchFo
1082
1100
  import { BankTransaction } from '@layerfi/components/types';
1083
1101
  export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: {
1084
1102
  bankTransaction: BankTransaction;
1085
- showReceiptUploads?: boolean | undefined;
1086
- showDescriptions?: boolean | undefined;
1103
+ showReceiptUploads?: boolean;
1104
+ showDescriptions?: boolean;
1087
1105
  }) => React.JSX.Element;
1088
1106
 
1089
1107
  }
@@ -1094,9 +1112,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
1094
1112
  bankTransaction: BankTransaction;
1095
1113
  showReceiptUploads?: boolean;
1096
1114
  showDescriptions?: boolean;
1097
- isOpen?: boolean;
1098
1115
  }
1099
- export const PersonalForm: ({ bankTransaction, showReceiptUploads, isOpen, showDescriptions, }: PersonalFormProps) => React.JSX.Element;
1116
+ export const PersonalForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: PersonalFormProps) => React.JSX.Element;
1100
1117
  export {};
1101
1118
 
1102
1119
  }
@@ -1108,9 +1125,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
1108
1125
  showTooltips: boolean;
1109
1126
  showReceiptUploads?: boolean;
1110
1127
  showDescriptions?: boolean;
1111
- isOpen?: boolean;
1112
1128
  }
1113
- export const SplitAndMatchForm: ({ bankTransaction, showTooltips, showReceiptUploads, isOpen, showDescriptions, }: SplitAndMatchFormProps) => React.JSX.Element;
1129
+ export const SplitAndMatchForm: ({ bankTransaction, showTooltips, showReceiptUploads, showDescriptions, }: SplitAndMatchFormProps) => React.JSX.Element;
1114
1130
  export {};
1115
1131
 
1116
1132
  }
@@ -1120,13 +1136,12 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitFo
1120
1136
  export const SplitForm: ({ bankTransaction, showTooltips, showReceiptUploads, showDescriptions, }: {
1121
1137
  bankTransaction: BankTransaction;
1122
1138
  showTooltips: boolean;
1123
- showReceiptUploads?: boolean | undefined;
1124
- showDescriptions?: boolean | undefined;
1139
+ showReceiptUploads?: boolean;
1140
+ showDescriptions?: boolean;
1125
1141
  }) => React.JSX.Element;
1126
1142
 
1127
1143
  }
1128
1144
  declare module '@layerfi/components/components/BankTransactionMobileList/TransactionToOpenContext' {
1129
- /// <reference types="react" />
1130
1145
  type UseTransactionToOpen = () => {
1131
1146
  transactionIdToOpen?: string;
1132
1147
  setTransactionIdToOpen: (id: string) => void;
@@ -1135,7 +1150,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Transac
1135
1150
  export const useTransactionToOpen: UseTransactionToOpen;
1136
1151
  export type TransactionToOpenContextType = ReturnType<typeof useTransactionToOpen>;
1137
1152
  export const TransactionToOpenContext: import("react").Context<{
1138
- transactionIdToOpen?: string | undefined;
1153
+ transactionIdToOpen?: string;
1139
1154
  setTransactionIdToOpen: (id: string) => void;
1140
1155
  clearTransactionIdToOpen: () => void;
1141
1156
  }>;
@@ -1228,8 +1243,10 @@ declare module '@layerfi/components/components/BankTransactionReceipts/BankTrans
1228
1243
  export interface BankTransactionReceiptsHandle {
1229
1244
  uploadReceipt: (file: File) => void;
1230
1245
  }
1231
- export const BankTransactionReceiptsWithProvider: React.ForwardRefExoticComponent<BankTransactionReceiptsWithProviderProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
1232
- export const BankTransactionReceipts: React.ForwardRefExoticComponent<BankTransactionReceiptsProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
1246
+ const BankTransactionReceiptsWithProvider: React.ForwardRefExoticComponent<BankTransactionReceiptsWithProviderProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
1247
+ export { BankTransactionReceiptsWithProvider };
1248
+ const BankTransactionReceipts: React.ForwardRefExoticComponent<BankTransactionReceiptsProps & React.RefAttributes<BankTransactionReceiptsHandle>>;
1249
+ export { BankTransactionReceipts };
1233
1250
 
1234
1251
  }
1235
1252
  declare module '@layerfi/components/components/BankTransactionReceipts/index' {
@@ -1250,6 +1267,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1250
1267
  initialLoad?: boolean;
1251
1268
  showDescriptions: boolean;
1252
1269
  showReceiptUploads: boolean;
1270
+ showReceiptUploadColumn: boolean;
1253
1271
  showTooltips: boolean;
1254
1272
  mode: BankTransactionsMode;
1255
1273
  stringOverrides?: BankTransactionCTAStringOverrides;
@@ -1257,7 +1275,7 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1257
1275
  export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
1258
1276
  export const extractDescriptionForSplit: (category: Category) => string;
1259
1277
  export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
1260
- export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, }: Props) => React.JSX.Element;
1278
+ export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, showReceiptUploadColumn, showTooltips, stringOverrides, }: Props) => React.JSX.Element;
1261
1279
  export {};
1262
1280
 
1263
1281
  }
@@ -1292,6 +1310,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1292
1310
  import { BankTransactionsTableStringOverrides } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
1293
1311
  import { BankTransactionsHeaderStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactionsHeader';
1294
1312
  import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
1313
+ import type { LayerError } from '@layerfi/components/models/ErrorHandler';
1295
1314
  export type BankTransactionsMode = 'bookkeeping-client' | 'self-serve';
1296
1315
  export const categorizationEnabled: (mode: BankTransactionsMode) => boolean;
1297
1316
  export interface BankTransactionsStringOverrides {
@@ -1318,7 +1337,7 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1318
1337
  stringOverrides?: BankTransactionsStringOverrides;
1319
1338
  }
1320
1339
  export interface BankTransactionsWithErrorProps extends BankTransactionsProps {
1321
- onError?: (error: Error) => void;
1340
+ onError?: (error: LayerError) => void;
1322
1341
  }
1323
1342
  export const BankTransactions: ({ onError, ...props }: BankTransactionsWithErrorProps) => React.JSX.Element;
1324
1343
 
@@ -1434,10 +1453,11 @@ declare module '@layerfi/components/components/BankTransactionsTable/index' {
1434
1453
  }
1435
1454
  declare module '@layerfi/components/components/Button/BackButton' {
1436
1455
  import React, { ButtonHTMLAttributes } from 'react';
1437
- export interface BackButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1456
+ type BackButtonProps = {
1438
1457
  textOnly?: boolean;
1439
- }
1440
- export const BackButton: ({ className, children, textOnly, ...props }: BackButtonProps) => React.JSX.Element;
1458
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
1459
+ export const BackButton: ({ className, textOnly, ...props }: BackButtonProps) => React.JSX.Element;
1460
+ export {};
1441
1461
 
1442
1462
  }
1443
1463
  declare module '@layerfi/components/components/Button/Button' {
@@ -1464,10 +1484,11 @@ declare module '@layerfi/components/components/Button/Button' {
1464
1484
  }
1465
1485
  declare module '@layerfi/components/components/Button/CloseButton' {
1466
1486
  import React, { ButtonHTMLAttributes } from 'react';
1467
- export interface CloseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1487
+ type CloseButtonProps = {
1468
1488
  textOnly?: boolean;
1469
- }
1470
- export const CloseButton: ({ className, children, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
1489
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
1490
+ export const CloseButton: ({ className, textOnly, ...props }: CloseButtonProps) => React.JSX.Element;
1491
+ export {};
1471
1492
 
1472
1493
  }
1473
1494
  declare module '@layerfi/components/components/Button/DownloadButton' {
@@ -1489,10 +1510,11 @@ declare module '@layerfi/components/components/Button/DownloadButton' {
1489
1510
  }
1490
1511
  declare module '@layerfi/components/components/Button/ExpandButton' {
1491
1512
  import React, { ButtonHTMLAttributes } from 'react';
1492
- export interface ExpandButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1513
+ type ExpandButtonProps = {
1493
1514
  collapsed?: boolean;
1494
- }
1495
- export const ExpandButton: ({ className, children, collapsed, ...props }: ExpandButtonProps) => React.JSX.Element;
1515
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
1516
+ export const ExpandButton: ({ className, collapsed, ...props }: ExpandButtonProps) => React.JSX.Element;
1517
+ export {};
1496
1518
 
1497
1519
  }
1498
1520
  declare module '@layerfi/components/components/Button/ExpandCollapseButton' {
@@ -1520,7 +1542,7 @@ declare module '@layerfi/components/components/Button/IconButton' {
1520
1542
  download?: HTMLAnchorElement['download'];
1521
1543
  onClick?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void;
1522
1544
  }
1523
- export const IconButton: ({ className, children, icon, active, withBorder, href, target, rel, download, ...props }: IconButtonProps) => React.JSX.Element;
1545
+ export const IconButton: ({ className, children: _children, icon, active, withBorder, href, target, rel, download, ...props }: IconButtonProps) => React.JSX.Element;
1524
1546
 
1525
1547
  }
1526
1548
  declare module '@layerfi/components/components/Button/Link' {
@@ -1548,7 +1570,7 @@ declare module '@layerfi/components/components/Button/RetryButton' {
1548
1570
  fullWidth?: boolean;
1549
1571
  iconOnly?: boolean;
1550
1572
  }
1551
- export const RetryButton: ({ className, processing, disabled, error, children, ...props }: RetryButtonProps) => React.JSX.Element;
1573
+ export const RetryButton: ({ className, processing, disabled, error: _error, children, ...props }: RetryButtonProps) => React.JSX.Element;
1552
1574
 
1553
1575
  }
1554
1576
  declare module '@layerfi/components/components/Button/SubmitButton' {
@@ -1672,7 +1694,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelectDraw
1672
1694
  selected?: CategoryOption;
1673
1695
  showTooltips: boolean;
1674
1696
  }
1675
- export const CategorySelectDrawer: ({ onSelect, selected, showTooltips, }: CategorySelectDrawerProps) => React.JSX.Element;
1697
+ export const CategorySelectDrawer: ({ onSelect, selected, showTooltips: _showTooltips, }: CategorySelectDrawerProps) => React.JSX.Element;
1676
1698
  export {};
1677
1699
 
1678
1700
  }
@@ -1727,7 +1749,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
1727
1749
  normalityLabel?: string;
1728
1750
  }
1729
1751
  export const ChartOfAccountsForm: ({ stringOverrides, }: {
1730
- stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
1752
+ stringOverrides?: ChartOfAccountsFormStringOverrides;
1731
1753
  }) => React.JSX.Element | null;
1732
1754
 
1733
1755
  }
@@ -1760,8 +1782,8 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAcc
1760
1782
  import React, { RefObject } from 'react';
1761
1783
  import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
1762
1784
  export const ChartOfAccountsSidebar: ({ parentRef: _parentRef, stringOverrides, }: {
1763
- parentRef?: React.RefObject<HTMLDivElement> | undefined;
1764
- stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
1785
+ parentRef?: RefObject<HTMLDivElement>;
1786
+ stringOverrides?: ChartOfAccountsFormStringOverrides;
1765
1787
  }) => React.JSX.Element;
1766
1788
 
1767
1789
  }
@@ -1777,18 +1799,18 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
1777
1799
  export const ChartOfAccountsTable: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, templateAccountsEditable, }: {
1778
1800
  view: View;
1779
1801
  data: ChartWithBalances;
1780
- stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
1781
- error?: any;
1802
+ stringOverrides?: ChartOfAccountsTableStringOverrides;
1803
+ error?: unknown;
1782
1804
  expandAll?: ExpandActionState;
1783
1805
  cumulativeIndex: number;
1784
1806
  accountsLength: number;
1785
- templateAccountsEditable?: boolean | undefined;
1807
+ templateAccountsEditable?: boolean;
1786
1808
  }) => React.JSX.Element;
1787
1809
  export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, templateAccountsEditable, }: {
1788
1810
  view: View;
1789
1811
  data: ChartWithBalances;
1790
- stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
1791
- error?: any;
1812
+ stringOverrides?: ChartOfAccountsTableStringOverrides;
1813
+ error?: unknown;
1792
1814
  expandAll?: ExpandActionState;
1793
1815
  cumulativeIndex: number;
1794
1816
  accountsLength: number;
@@ -1813,11 +1835,11 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
1813
1835
  export const ChartOfAccountsTableWithPanel: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, stringOverrides, templateAccountsEditable, }: {
1814
1836
  view: View;
1815
1837
  containerRef: RefObject<HTMLDivElement>;
1816
- asWidget?: boolean | undefined;
1817
- withDateControl?: boolean | undefined;
1818
- withExpandAllButton?: boolean | undefined;
1819
- stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
1820
- templateAccountsEditable?: boolean | undefined;
1838
+ asWidget?: boolean;
1839
+ withDateControl?: boolean;
1840
+ withExpandAllButton?: boolean;
1841
+ stringOverrides?: ChartOfAccountsTableStringOverrides;
1842
+ templateAccountsEditable?: boolean;
1821
1843
  }) => React.JSX.Element;
1822
1844
 
1823
1845
  }
@@ -1836,7 +1858,8 @@ declare module '@layerfi/components/components/Container/Container' {
1836
1858
  children: ReactNode;
1837
1859
  style?: CSSProperties;
1838
1860
  }
1839
- export const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
1861
+ const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
1862
+ export { Container };
1840
1863
 
1841
1864
  }
1842
1865
  declare module '@layerfi/components/components/Container/Header' {
@@ -1855,7 +1878,8 @@ declare module '@layerfi/components/components/Container/Header' {
1855
1878
  children: ReactNode;
1856
1879
  layout?: HeaderLayout;
1857
1880
  }
1858
- export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
1881
+ const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
1882
+ export { Header };
1859
1883
 
1860
1884
  }
1861
1885
  declare module '@layerfi/components/components/Container/index' {
@@ -1912,7 +1936,7 @@ declare module '@layerfi/components/components/DatePicker/DatePicker' {
1912
1936
  ModeSelector: FC<DatePickerModeSelectorProps>;
1913
1937
  };
1914
1938
  }
1915
- export const DatePicker: ({ selected, onChange, mode, allowedModes, dateFormat, timeIntervals, timeCaption, placeholderText, customDateRanges, wrapperClassName, calendarClassName, popperClassName, minDate, maxDate, currentDateOption, navigateArrows, onChangeMode, slots, ...props }: DatePickerProps) => React.JSX.Element;
1939
+ export const DatePicker: ({ selected, onChange, mode, allowedModes, dateFormat, timeIntervals, timeCaption, placeholderText: _placeholderText, customDateRanges, wrapperClassName, calendarClassName, popperClassName, minDate, maxDate, currentDateOption, navigateArrows, onChangeMode, slots, ...props }: DatePickerProps) => React.JSX.Element;
1916
1940
  export {};
1917
1941
 
1918
1942
  }
@@ -1924,7 +1948,7 @@ declare module '@layerfi/components/components/DatePicker/DatePickerOptions' {
1924
1948
  endDate: Date;
1925
1949
  };
1926
1950
  export const DatePickerOptions: ({ customDateRanges, setSelectedDate, }: {
1927
- customDateRanges?: CustomDateRange[] | undefined;
1951
+ customDateRanges?: CustomDateRange[];
1928
1952
  setSelectedDate: (dates: [Date | null, Date | null]) => void;
1929
1953
  }) => React.JSX.Element;
1930
1954
 
@@ -2006,22 +2030,22 @@ declare module '@layerfi/components/components/Drawer/index' {
2006
2030
 
2007
2031
  }
2008
2032
  declare module '@layerfi/components/components/ErrorBoundary/ErrorBoundary' {
2009
- import React, { ErrorInfo, Component } from 'react';
2033
+ import React, { ErrorInfo, Component, type PropsWithChildren } from 'react';
2010
2034
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
2011
2035
  interface ErrorBoundaryProps {
2012
- onError?: (error: Error) => void;
2036
+ onError?: (error: LayerError) => void;
2013
2037
  }
2014
2038
  interface ErrorBoundaryState {
2015
2039
  hasError?: boolean;
2016
2040
  }
2017
- export class ErrorBoundary extends Component<React.PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> {
2018
- onError: (err: LayerError) => void;
2019
- constructor(props: any);
2041
+ export class ErrorBoundary extends Component<PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> {
2042
+ onError?: (err: LayerError) => void;
2043
+ constructor(props: PropsWithChildren<ErrorBoundaryProps>);
2020
2044
  static getDerivedStateFromError(_error: Error): {
2021
2045
  hasError: boolean;
2022
2046
  };
2023
2047
  componentDidCatch(error: Error, _info: ErrorInfo): void;
2024
- render(): any;
2048
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
2025
2049
  }
2026
2050
  export {};
2027
2051
 
@@ -2075,8 +2099,8 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
2075
2099
  date?: string;
2076
2100
  error?: string;
2077
2101
  }
2078
- export const ExpandedBankTransactionRow: React.ForwardRefExoticComponent<Props & React.RefAttributes<SaveHandle>>;
2079
- export {};
2102
+ const ExpandedBankTransactionRow: React.ForwardRefExoticComponent<Props & React.RefAttributes<SaveHandle>>;
2103
+ export { ExpandedBankTransactionRow };
2080
2104
 
2081
2105
  }
2082
2106
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/index' {
@@ -2085,7 +2109,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/index'
2085
2109
  }
2086
2110
  declare module '@layerfi/components/components/FileThumb/FileThumb' {
2087
2111
  import React from 'react';
2088
- export interface FileThumbProps {
2112
+ type FileThumbProps = {
2089
2113
  url?: string;
2090
2114
  type?: string;
2091
2115
  floatingActions?: boolean;
@@ -2098,8 +2122,9 @@ declare module '@layerfi/components/components/FileThumb/FileThumb' {
2098
2122
  onOpen?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
2099
2123
  enableDownload?: boolean;
2100
2124
  error?: string;
2101
- }
2102
- export const FileThumb: ({ url, type, floatingActions, uploadPending, deletePending, name, date, onDelete, enableOpen, onOpen, enableDownload, error, }: FileThumbProps) => React.JSX.Element;
2125
+ };
2126
+ export const FileThumb: ({ url, floatingActions, uploadPending, deletePending, name, date, onDelete, enableOpen, onOpen, enableDownload, error, }: FileThumbProps) => React.JSX.Element;
2127
+ export {};
2103
2128
 
2104
2129
  }
2105
2130
  declare module '@layerfi/components/components/FileThumb/index' {
@@ -2125,7 +2150,8 @@ declare module '@layerfi/components/components/Header/Header' {
2125
2150
  rounded?: boolean;
2126
2151
  children: ReactNode;
2127
2152
  }
2128
- export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLElement>>;
2153
+ const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLElement>>;
2154
+ export { Header };
2129
2155
 
2130
2156
  }
2131
2157
  declare module '@layerfi/components/components/Header/HeaderCol' {
@@ -2324,7 +2350,7 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
2324
2350
  }
2325
2351
  export const JournalForm: ({ config, stringOverrides, }: {
2326
2352
  config: JournalConfig;
2327
- stringOverrides?: JournalFormStringOverrides | undefined;
2353
+ stringOverrides?: JournalFormStringOverrides;
2328
2354
  }) => React.JSX.Element;
2329
2355
 
2330
2356
  }
@@ -2353,9 +2379,9 @@ declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
2353
2379
  import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
2354
2380
  import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
2355
2381
  export const JournalSidebar: ({ parentRef: _parentRef, config, stringOverrides, }: {
2356
- parentRef?: React.RefObject<HTMLDivElement> | undefined;
2382
+ parentRef?: RefObject<HTMLDivElement>;
2357
2383
  config: JournalConfig;
2358
- stringOverrides?: JournalFormStringOverrides | undefined;
2384
+ stringOverrides?: JournalFormStringOverrides;
2359
2385
  }) => React.JSX.Element;
2360
2386
 
2361
2387
  }
@@ -2371,7 +2397,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
2371
2397
  export const JournalTable: ({ view, data, stringOverrides, }: {
2372
2398
  view: View;
2373
2399
  data: JournalEntry[];
2374
- stringOverrides?: JournalTableStringOverrides | undefined;
2400
+ stringOverrides?: JournalTableStringOverrides;
2375
2401
  }) => React.JSX.Element;
2376
2402
 
2377
2403
  }
@@ -2395,9 +2421,9 @@ declare module '@layerfi/components/components/JournalTable/JournalTableWithPane
2395
2421
  export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, view, }: {
2396
2422
  view: View;
2397
2423
  containerRef: RefObject<HTMLDivElement>;
2398
- pageSize?: number | undefined;
2424
+ pageSize?: number;
2399
2425
  config: JournalConfig;
2400
- stringOverrides?: JournalTableStringOverrides | undefined;
2426
+ stringOverrides?: JournalTableStringOverrides;
2401
2427
  }) => React.JSX.Element;
2402
2428
 
2403
2429
  }
@@ -2466,7 +2492,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
2466
2492
  }
2467
2493
  export const SourceDetailView: ({ source, stringOverrides, }: {
2468
2494
  source: LedgerEntrySource;
2469
- stringOverrides?: SourceDetailStringOverrides | undefined;
2495
+ stringOverrides?: SourceDetailStringOverrides;
2470
2496
  }) => React.JSX.Element | null;
2471
2497
  interface JournalEntryDetailsStringOverrides {
2472
2498
  entryTypeLabel?: string;
@@ -2493,7 +2519,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
2493
2519
  lineItemsTable?: LineItemsTableStringOverrides;
2494
2520
  }
2495
2521
  export const LedgerAccountEntryDetails: ({ stringOverrides, }: {
2496
- stringOverrides?: LedgerAccountEntryDetailsStringOverrides | undefined;
2522
+ stringOverrides?: LedgerAccountEntryDetailsStringOverrides;
2497
2523
  }) => React.JSX.Element;
2498
2524
  export {};
2499
2525
 
@@ -2554,6 +2580,23 @@ declare module '@layerfi/components/components/LinkedAccountThumb/LinkedAccountT
2554
2580
  declare module '@layerfi/components/components/LinkedAccountThumb/index' {
2555
2581
  export { LinkedAccountThumb } from '@layerfi/components/components/LinkedAccountThumb/LinkedAccountThumb';
2556
2582
 
2583
+ }
2584
+ declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/LinkedAccountToConfirm' {
2585
+ import React from 'react';
2586
+ import type { LinkedAccount } from '@layerfi/components/types/linked_accounts';
2587
+ type LinkedAccountConfirmationProps = {
2588
+ account: LinkedAccount;
2589
+ isConfirmed: boolean;
2590
+ onChangeConfirmed: (isConfirmed: boolean) => void;
2591
+ };
2592
+ export function LinkedAccountToConfirm({ account, isConfirmed, onChangeConfirmed, }: LinkedAccountConfirmationProps): React.JSX.Element;
2593
+ export {};
2594
+
2595
+ }
2596
+ declare module '@layerfi/components/components/LinkedAccounts/ConfirmationModal/LinkedAccountsConfirmationModal' {
2597
+ import React from 'react';
2598
+ export function LinkedAccountsConfirmationModal(): React.JSX.Element;
2599
+
2557
2600
  }
2558
2601
  declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountItemThumb' {
2559
2602
  import React from 'react';
@@ -2764,9 +2807,9 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2764
2807
  Context: React.Context<{
2765
2808
  data: import("@layerfi/components/types").ProfitAndLoss | undefined;
2766
2809
  filteredDataRevenue: import("@layerfi/components/types/line_item").LineBaseItem[];
2767
- filteredTotalRevenue?: number | undefined;
2810
+ filteredTotalRevenue?: number;
2768
2811
  filteredDataExpenses: import("@layerfi/components/types/line_item").LineBaseItem[];
2769
- filteredTotalExpenses?: number | undefined;
2812
+ filteredTotalExpenses?: number;
2770
2813
  isLoading: boolean;
2771
2814
  isValidating: boolean;
2772
2815
  error: unknown;
@@ -2776,9 +2819,9 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2776
2819
  sidebarScope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
2777
2820
  setSidebarScope: (view: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope) => void;
2778
2821
  filters: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").ProfitAndLossFilters;
2779
- sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection | undefined) => void;
2822
+ sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection) => void;
2780
2823
  setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
2781
- tagFilter?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter | undefined;
2824
+ tagFilter?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").PnlTagFilter;
2782
2825
  }>;
2783
2826
  ComparisonContext: React.Context<{
2784
2827
  data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
@@ -2791,31 +2834,29 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2791
2834
  setCompareMonths: (months: number) => void;
2792
2835
  compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
2793
2836
  setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
2794
- refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
2795
- getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat | undefined) => Promise<{
2796
- data?: import("@layerfi/components/types/general").S3PresignedUrl | undefined;
2837
+ refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean) => void;
2838
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
2839
+ data?: import("@layerfi/components/types/general").S3PresignedUrl;
2797
2840
  error?: unknown;
2798
2841
  }>;
2799
2842
  }>;
2800
- DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/views/Reports/reportTypes").TimeRangePickerConfig) => React.JSX.Element;
2843
+ DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
2801
2844
  CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/index").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
2802
2845
  Summaries: (props: {
2803
- actionable?: boolean | undefined;
2804
- stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides | undefined;
2805
- chartColorsList?: string[] | undefined;
2806
- variants?: Partial<{
2807
- size: "lg" | "sm";
2808
- }> | undefined;
2809
- revenueLabel?: string | undefined;
2810
- vertical?: boolean | undefined;
2846
+ actionable?: boolean;
2847
+ stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides;
2848
+ chartColorsList?: string[];
2849
+ variants?: import("@layerfi/components/utils/styleUtils/sizeVariants").Variants;
2850
+ revenueLabel?: string;
2851
+ vertical?: boolean;
2811
2852
  }) => React.JSX.Element;
2812
2853
  Table: (props: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent").ProfitAndLossTableProps) => React.JSX.Element;
2813
2854
  DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
2814
2855
  scope?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
2815
- hideClose?: boolean | undefined;
2816
- showDatePicker?: boolean | undefined;
2817
- chartColorsList?: string[] | undefined;
2818
- stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides | undefined;
2856
+ hideClose?: boolean;
2857
+ showDatePicker?: boolean;
2858
+ chartColorsList?: string[];
2859
+ stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides;
2819
2860
  }) => React.JSX.Element;
2820
2861
  Header: ({ text, className, headingClassName, withDatePicker, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => React.JSX.Element;
2821
2862
  Report: ({ stringOverrides, comparisonConfig, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => React.JSX.Element;
@@ -2887,7 +2928,7 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/Profi
2887
2928
 
2888
2929
  }
2889
2930
  declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index' {
2890
- export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
2931
+ export { ProfitAndLossCompareOptions, ProfitAndLossCompareOptionsProps, } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
2891
2932
 
2892
2933
  }
2893
2934
  declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
@@ -2970,10 +3011,10 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Profi
2970
3011
  }
2971
3012
  export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
2972
3013
  scope?: SidebarScope;
2973
- hideClose?: boolean | undefined;
2974
- showDatePicker?: boolean | undefined;
2975
- chartColorsList?: string[] | undefined;
2976
- stringOverrides?: ProfitAndLossDetailedChartsStringOverrides | undefined;
3014
+ hideClose?: boolean;
3015
+ showDatePicker?: boolean;
3016
+ chartColorsList?: string[];
3017
+ stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
2977
3018
  }) => React.JSX.Element;
2978
3019
 
2979
3020
  }
@@ -3294,7 +3335,7 @@ declare module '@layerfi/components/components/StatementOfCashFlowTable/Statemen
3294
3335
  export const StatementOfCashFlowTable: ({ data, config, stringOverrides, }: {
3295
3336
  data: StatementOfCashFlow;
3296
3337
  config: StatementOfCashFlowRowProps[];
3297
- stringOverrides?: StatementOfCashFlowTableStringOverrides | undefined;
3338
+ stringOverrides?: StatementOfCashFlowTableStringOverrides;
3298
3339
  }) => React.JSX.Element;
3299
3340
  export {};
3300
3341
 
@@ -3409,20 +3450,20 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
3409
3450
  import { useTasks } from '@layerfi/components/hooks/useTasks/index';
3410
3451
  export type UseTasksContextType = ReturnType<typeof useTasks>;
3411
3452
  export const UseTasksContext: React.Context<{
3412
- data?: import("@layerfi/components/types/tasks").TaskTypes[] | undefined;
3413
- isLoading?: boolean | undefined;
3414
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus | undefined;
3415
- isValidating?: boolean | undefined;
3453
+ data?: import("@layerfi/components/types/tasks").TaskTypes[];
3454
+ isLoading?: boolean;
3455
+ loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
3456
+ isValidating?: boolean;
3416
3457
  error?: unknown;
3417
3458
  refetch: () => void;
3418
3459
  submitResponseToTask: (taskId: string, userResponse: string) => void;
3419
3460
  uploadDocumentForTask: (taskId: string, file: File) => void;
3420
3461
  }>;
3421
3462
  export const useTasksContext: () => {
3422
- data?: import("@layerfi/components/types/tasks").TaskTypes[] | undefined;
3423
- isLoading?: boolean | undefined;
3424
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus | undefined;
3425
- isValidating?: boolean | undefined;
3463
+ data?: import("@layerfi/components/types/tasks").TaskTypes[];
3464
+ isLoading?: boolean;
3465
+ loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
3466
+ isValidating?: boolean;
3426
3467
  error?: unknown;
3427
3468
  refetch: () => void;
3428
3469
  submitResponseToTask: (taskId: string, userResponse: string) => void;
@@ -3432,21 +3473,21 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
3432
3473
  header?: string;
3433
3474
  }
3434
3475
  export const Tasks: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
3435
- tasksHeader?: string | undefined;
3436
- collapsable?: boolean | undefined;
3437
- defaultCollapsed?: boolean | undefined;
3438
- collapsedWhenComplete?: boolean | undefined;
3439
- stringOverrides?: TasksStringOverrides | undefined;
3476
+ tasksHeader?: string;
3477
+ collapsable?: boolean;
3478
+ defaultCollapsed?: boolean;
3479
+ collapsedWhenComplete?: boolean;
3480
+ stringOverrides?: TasksStringOverrides;
3440
3481
  }) => React.JSX.Element;
3441
3482
  export const TasksProvider: ({ children }: {
3442
3483
  children: ReactNode;
3443
3484
  }) => React.JSX.Element;
3444
3485
  export const TasksComponent: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
3445
- tasksHeader?: string | undefined;
3446
- collapsable?: boolean | undefined;
3447
- defaultCollapsed?: boolean | undefined;
3448
- collapsedWhenComplete?: boolean | undefined;
3449
- stringOverrides?: TasksStringOverrides | undefined;
3486
+ tasksHeader?: string;
3487
+ collapsable?: boolean;
3488
+ defaultCollapsed?: boolean;
3489
+ collapsedWhenComplete?: boolean;
3490
+ stringOverrides?: TasksStringOverrides;
3450
3491
  }) => React.JSX.Element;
3451
3492
 
3452
3493
  }
@@ -3457,9 +3498,9 @@ declare module '@layerfi/components/components/Tasks/index' {
3457
3498
  declare module '@layerfi/components/components/TasksHeader/TasksHeader' {
3458
3499
  import React from 'react';
3459
3500
  export const TasksHeader: ({ tasksHeader, collapsable, open, toggleContent, }: {
3460
- tasksHeader?: string | undefined;
3461
- collapsable?: boolean | undefined;
3462
- open?: boolean | undefined;
3501
+ tasksHeader?: string;
3502
+ collapsable?: boolean;
3503
+ open?: boolean;
3463
3504
  toggleContent: () => void;
3464
3505
  }) => React.JSX.Element;
3465
3506
 
@@ -3471,7 +3512,7 @@ declare module '@layerfi/components/components/TasksHeader/index' {
3471
3512
  declare module '@layerfi/components/components/TasksList/TasksList' {
3472
3513
  import React from 'react';
3473
3514
  export const TasksList: ({ pageSize }: {
3474
- pageSize?: number | undefined;
3515
+ pageSize?: number;
3475
3516
  }) => React.JSX.Element;
3476
3517
 
3477
3518
  }
@@ -3523,7 +3564,7 @@ declare module '@layerfi/components/components/Toast/Toast' {
3523
3564
  duration?: number;
3524
3565
  isExiting?: boolean;
3525
3566
  }
3526
- export const ToastsContainer: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3567
+ export function ToastsContainer(): React.JSX.Element;
3527
3568
 
3528
3569
  }
3529
3570
  declare module '@layerfi/components/components/Toggle/Toggle' {
@@ -3556,7 +3597,7 @@ declare module '@layerfi/components/components/Toggle/index' {
3556
3597
 
3557
3598
  }
3558
3599
  declare module '@layerfi/components/components/Tooltip/Tooltip' {
3559
- import React, { ReactNode } from 'react';
3600
+ import React, { ReactNode, HTMLProps } from 'react';
3560
3601
  import type { Placement } from '@floating-ui/react';
3561
3602
  export interface TooltipOptions {
3562
3603
  initialOpen?: boolean;
@@ -3573,9 +3614,11 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
3573
3614
  children: ReactNode;
3574
3615
  } & TooltipOptions) => React.JSX.Element;
3575
3616
  export const TooltipTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
3576
- asChild?: boolean | undefined;
3617
+ asChild?: boolean;
3577
3618
  }, "ref"> & React.RefAttributes<HTMLElement>>;
3578
- export const TooltipContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3619
+ type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
3620
+ export const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
3621
+ export {};
3579
3622
 
3580
3623
  }
3581
3624
  declare module '@layerfi/components/components/Tooltip/index' {
@@ -3617,7 +3660,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
3617
3660
  update: () => void;
3618
3661
  floatingStyles: React.CSSProperties;
3619
3662
  open: boolean;
3620
- onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
3663
+ onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
3621
3664
  events: import("@floating-ui/react").FloatingEvents;
3622
3665
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
3623
3666
  nodeId: string | undefined;
@@ -3625,12 +3668,12 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
3625
3668
  refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
3626
3669
  elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
3627
3670
  };
3628
- getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
3629
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
3630
- getItemProps: (userProps?: (Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
3631
- active?: boolean | undefined;
3632
- selected?: boolean | undefined;
3633
- }) | undefined) => Record<string, unknown>;
3671
+ getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
3672
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
3673
+ getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
3674
+ active?: boolean;
3675
+ selected?: boolean;
3676
+ }) => Record<string, unknown>;
3634
3677
  open: boolean;
3635
3678
  setOpen: (open: boolean) => void;
3636
3679
  isMounted: boolean;
@@ -3666,7 +3709,7 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
3666
3709
  update: () => void;
3667
3710
  floatingStyles: React.CSSProperties;
3668
3711
  open: boolean;
3669
- onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
3712
+ onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
3670
3713
  events: import("@floating-ui/react").FloatingEvents;
3671
3714
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
3672
3715
  nodeId: string | undefined;
@@ -3674,12 +3717,12 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
3674
3717
  refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
3675
3718
  elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
3676
3719
  };
3677
- getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
3678
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
3679
- getItemProps: (userProps?: (Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
3680
- active?: boolean | undefined;
3681
- selected?: boolean | undefined;
3682
- }) | undefined) => Record<string, unknown>;
3720
+ getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
3721
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
3722
+ getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
3723
+ active?: boolean;
3724
+ selected?: boolean;
3725
+ }) => Record<string, unknown>;
3683
3726
  open: boolean;
3684
3727
  setOpen: (open: boolean) => void;
3685
3728
  isMounted: boolean;
@@ -3745,7 +3788,7 @@ declare module '@layerfi/components/components/Typography/Text' {
3745
3788
  tooltipOptions?: TextTooltipOptions;
3746
3789
  }
3747
3790
  export const Text: ({ as: Component, className, children, size, weight, withTooltip, ...props }: TextProps) => React.JSX.Element;
3748
- export const TextWithTooltip: ({ as: Component, className, children, size, weight, withTooltip, tooltipOptions, ...props }: TextProps) => React.JSX.Element;
3791
+ export const TextWithTooltip: ({ as: Component, className, children, size: _size, weight: _weight, withTooltip: _withTooltip, tooltipOptions, ...props }: TextProps) => React.JSX.Element;
3749
3792
 
3750
3793
  }
3751
3794
  declare module '@layerfi/components/components/Typography/index' {
@@ -3781,7 +3824,8 @@ declare module '@layerfi/components/components/View/View' {
3781
3824
  sidebar?: ReactNode;
3782
3825
  viewClassName?: string;
3783
3826
  }
3784
- export const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
3827
+ const View: React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLDivElement>>;
3828
+ export { View };
3785
3829
 
3786
3830
  }
3787
3831
  declare module '@layerfi/components/components/View/index' {
@@ -3802,13 +3846,119 @@ declare module '@layerfi/components/components/ViewHeader/index' {
3802
3846
  export { ViewHeader } from '@layerfi/components/components/ViewHeader/ViewHeader';
3803
3847
 
3804
3848
  }
3805
- declare module '@layerfi/components/components/ui/Stack' {
3849
+ declare module '@layerfi/components/components/ui/Button/Button' {
3850
+ import React from 'react';
3851
+ import { type ButtonProps } from 'react-aria-components';
3852
+ type ButtonVariant = 'solid' | 'ghost';
3853
+ type ButtonSize = 'md' | 'lg';
3854
+ const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "className"> & {
3855
+ icon?: true;
3856
+ size?: ButtonSize;
3857
+ variant?: ButtonVariant;
3858
+ } & React.RefAttributes<HTMLButtonElement>>;
3859
+ export { Button };
3860
+
3861
+ }
3862
+ declare module '@layerfi/components/components/ui/Checkbox/Checkbox' {
3863
+ import React from 'react';
3864
+ import { type CheckboxProps } from 'react-aria-components';
3865
+ export function Checkbox({ children, ...props }: Omit<CheckboxProps, 'className'>): React.JSX.Element;
3866
+
3867
+ }
3868
+ declare module '@layerfi/components/components/ui/Loading/LoadingSpinner' {
3869
+ import React from 'react';
3870
+ import { type LucideProps } from 'lucide-react';
3871
+ export function LoadingSpinner({ size }: Pick<LucideProps, 'size'>): React.JSX.Element;
3872
+
3873
+ }
3874
+ declare module '@layerfi/components/components/ui/Modal/Modal' {
3875
+ import React, { type ComponentProps } from 'react';
3876
+ import { type DialogProps, type ModalOverlayProps } from 'react-aria-components';
3877
+ const ModalOverlay: React.ForwardRefExoticComponent<Omit<ModalOverlayProps, "className"> & React.RefAttributes<HTMLDivElement>>;
3878
+ const Dialog: React.ForwardRefExoticComponent<Omit<DialogProps, "className"> & React.RefAttributes<HTMLElement>>;
3879
+ type AllowedModalProps = Pick<ComponentProps<typeof ModalOverlay>, 'isOpen' | 'onOpenChange'>;
3880
+ type AllowedDialogProps = Pick<ComponentProps<typeof Dialog>, 'children'>;
3881
+ type ModalProps = AllowedModalProps & AllowedDialogProps;
3882
+ export function Modal({ isOpen, onOpenChange, children }: ModalProps): React.JSX.Element;
3883
+ export {};
3884
+
3885
+ }
3886
+ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
3887
+ import React, { type PropsWithChildren } from 'react';
3888
+ type ModalContextBarProps = {
3889
+ onClose?: () => void;
3890
+ };
3891
+ function ModalContextBar({ onClose }: ModalContextBarProps): React.JSX.Element;
3892
+ const ModalHeading: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & React.RefAttributes<HTMLHeadingElement>, "className"> & {
3893
+ size?: "sm";
3894
+ pbe?: "2xs" | "xs" | "sm" | "md" | "lg";
3895
+ }, "ref"> & React.RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
3896
+ const ModalDescription: React.ForwardRefExoticComponent<Omit<Omit<{
3897
+ slot?: string;
3898
+ size?: "xs" | "sm" | "md" | "lg";
3899
+ pbe?: "xs" | "sm" | "md" | "lg";
3900
+ align?: "center";
3901
+ } & {
3902
+ children?: React.ReactNode | undefined;
3903
+ } & React.RefAttributes<HTMLParagraphElement>, "slot">, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
3904
+ function ModalContent({ children }: PropsWithChildren): React.JSX.Element;
3905
+ function ModalActions({ children }: PropsWithChildren): React.JSX.Element;
3906
+ export { ModalContextBar, ModalHeading, ModalDescription, ModalContent, ModalActions, };
3907
+
3908
+ }
3909
+ declare module '@layerfi/components/components/ui/Stack/Stack' {
3806
3910
  import React, { type PropsWithChildren } from 'react';
3807
3911
  export type StackProps = PropsWithChildren<{
3808
3912
  gap?: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '5xl';
3809
- align?: 'start';
3913
+ align?: 'start' | 'center';
3914
+ justify?: 'center';
3915
+ slot?: string;
3810
3916
  }>;
3811
- export function VStack({ align, children, gap }: StackProps): React.JSX.Element;
3917
+ export function VStack({ align, children, gap, justify, ...restProps }: StackProps): React.JSX.Element;
3918
+
3919
+ }
3920
+ declare module '@layerfi/components/components/ui/Typography/Heading' {
3921
+ import React from 'react';
3922
+ type HeadingDataProps = {
3923
+ size?: 'sm';
3924
+ pbe?: '2xs' | 'xs' | 'sm' | 'md' | 'lg';
3925
+ };
3926
+ const Heading: React.ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & React.RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
3927
+ export { Heading };
3928
+
3929
+ }
3930
+ declare module '@layerfi/components/components/ui/Typography/Text' {
3931
+ import React from 'react';
3932
+ type TextProps = {
3933
+ slot?: string;
3934
+ size?: 'xs' | 'sm' | 'md' | 'lg';
3935
+ pbe?: 'xs' | 'sm' | 'md' | 'lg';
3936
+ align?: 'center';
3937
+ };
3938
+ const P: React.ForwardRefExoticComponent<TextProps & {
3939
+ children?: React.ReactNode | undefined;
3940
+ } & React.RefAttributes<HTMLParagraphElement>>;
3941
+ export { P };
3942
+
3943
+ }
3944
+ declare module '@layerfi/components/components/utility/ConditionalList' {
3945
+ import React, { type PropsWithChildren } from 'react';
3946
+ type ConditionalListProps<T> = {
3947
+ list: ReadonlyArray<T>;
3948
+ Empty: React.ReactNode;
3949
+ children: React.FC<{
3950
+ item: T;
3951
+ }>;
3952
+ Container?: React.FC<PropsWithChildren>;
3953
+ } & ({
3954
+ isLoading: boolean;
3955
+ Loading: React.ReactNode;
3956
+ } | {
3957
+ isLoading?: never;
3958
+ Loading?: never;
3959
+ });
3960
+ export function ConditionalList<T>({ list, isLoading, Empty, Container, Loading, children }: ConditionalListProps<T>): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
3961
+ export {};
3812
3962
 
3813
3963
  }
3814
3964
  declare module '@layerfi/components/config/charts' {
@@ -3885,7 +4035,6 @@ declare module '@layerfi/components/config/theme' {
3885
4035
 
3886
4036
  }
3887
4037
  declare module '@layerfi/components/contexts/BalanceSheetContext/BalanceSheetContext' {
3888
- /// <reference types="react" />
3889
4038
  import { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/index';
3890
4039
  export type BalanceSheetContextType = ReturnType<typeof useBalanceSheet>;
3891
4040
  export const BalanceSheetContext: import("react").Context<{
@@ -3901,49 +4050,48 @@ declare module '@layerfi/components/contexts/BalanceSheetContext/index' {
3901
4050
 
3902
4051
  }
3903
4052
  declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext' {
3904
- /// <reference types="react" />
3905
4053
  import { useBankTransactions } from '@layerfi/components/hooks/useBankTransactions/index';
3906
4054
  import { DisplayState } from '@layerfi/components/types';
3907
4055
  export type BankTransactionsContextType = ReturnType<typeof useBankTransactions>;
3908
4056
  export const BankTransactionsContext: import("react").Context<{
3909
- data?: import("@layerfi/components/types").BankTransaction[] | undefined;
3910
- metadata?: import("@layerfi/components/types").Metadata | undefined;
4057
+ data?: import("@layerfi/components/types").BankTransaction[];
4058
+ metadata?: import("@layerfi/components/types").Metadata;
3911
4059
  loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
3912
4060
  isLoading: boolean;
3913
4061
  isValidating: boolean;
3914
4062
  error: unknown;
3915
- hasMore?: boolean | undefined;
3916
- filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters | undefined;
3917
- accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[] | undefined;
4063
+ hasMore?: boolean;
4064
+ filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
4065
+ accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
3918
4066
  display: DisplayState;
3919
- categorize: (id: string, newCategory: import("@layerfi/components/types").CategoryUpdate, notify?: boolean | undefined) => Promise<void>;
3920
- match: (id: string, matchId: string, notify?: boolean | undefined) => Promise<void>;
4067
+ categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
4068
+ match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
3921
4069
  updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
3922
4070
  shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
3923
4071
  removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
3924
4072
  refetch: () => void;
3925
- setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters> | undefined) => void;
4073
+ setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
3926
4074
  activate: () => void;
3927
4075
  fetchMore: () => void;
3928
4076
  }>;
3929
4077
  export const useBankTransactionsContext: () => {
3930
- data?: import("@layerfi/components/types").BankTransaction[] | undefined;
3931
- metadata?: import("@layerfi/components/types").Metadata | undefined;
4078
+ data?: import("@layerfi/components/types").BankTransaction[];
4079
+ metadata?: import("@layerfi/components/types").Metadata;
3932
4080
  loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
3933
4081
  isLoading: boolean;
3934
4082
  isValidating: boolean;
3935
4083
  error: unknown;
3936
- hasMore?: boolean | undefined;
3937
- filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters | undefined;
3938
- accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[] | undefined;
4084
+ hasMore?: boolean;
4085
+ filters?: import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters;
4086
+ accountsList?: import("@layerfi/components/hooks/useBankTransactions/types").AccountItem[];
3939
4087
  display: DisplayState;
3940
- categorize: (id: string, newCategory: import("@layerfi/components/types").CategoryUpdate, notify?: boolean | undefined) => Promise<void>;
3941
- match: (id: string, matchId: string, notify?: boolean | undefined) => Promise<void>;
4088
+ categorize: (id: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
4089
+ match: (id: import("@layerfi/components/types").BankTransaction["id"], matchId: import("../../types").BankTransaction["id"], notify?: boolean) => Promise<void>;
3942
4090
  updateOneLocal: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
3943
4091
  shouldHideAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => boolean;
3944
4092
  removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
3945
4093
  refetch: () => void;
3946
- setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters> | undefined) => void;
4094
+ setFilters: (filters?: Partial<import("@layerfi/components/hooks/useBankTransactions/types").BankTransactionFilters>) => void;
3947
4095
  activate: () => void;
3948
4096
  fetchMore: () => void;
3949
4097
  };
@@ -3954,7 +4102,6 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/index' {
3954
4102
 
3955
4103
  }
3956
4104
  declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
3957
- /// <reference types="react" />
3958
4105
  import { useChartOfAccounts } from '@layerfi/components/hooks/useChartOfAccounts/index';
3959
4106
  export type ChartOfAccountsContextType = ReturnType<typeof useChartOfAccounts>;
3960
4107
  export const ChartOfAccountsContext: import("react").Context<{
@@ -3987,7 +4134,6 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/index' {
3987
4134
 
3988
4135
  }
3989
4136
  declare module '@layerfi/components/contexts/DrawerContext/DrawerContext' {
3990
- /// <reference types="react" />
3991
4137
  import { useDrawer } from '@layerfi/components/hooks/useDrawer/index';
3992
4138
  export type DrawerContextType = ReturnType<typeof useDrawer>;
3993
4139
  export const DrawerContext: import("react").Context<{
@@ -4004,33 +4150,35 @@ declare module '@layerfi/components/contexts/DrawerContext/index' {
4004
4150
 
4005
4151
  }
4006
4152
  declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
4007
- /// <reference types="react" />
4008
4153
  import { useJournal } from '@layerfi/components/hooks/useJournal/index';
4009
4154
  export type JournalContextType = ReturnType<typeof useJournal>;
4010
4155
  export const JournalContext: import("react").Context<{
4011
- data?: import("@layerfi/components/types").JournalEntry[] | undefined;
4012
- isLoading?: boolean | undefined;
4013
- isLoadingEntry?: boolean | undefined;
4014
- isValidating?: boolean | undefined;
4015
- isValidatingEntry?: boolean | undefined;
4156
+ data?: import("@layerfi/components/types").JournalEntry[];
4157
+ isLoading?: boolean;
4158
+ isLoadingEntry?: boolean;
4159
+ isValidating?: boolean;
4160
+ isValidatingEntry?: boolean;
4016
4161
  error?: unknown;
4017
4162
  errorEntry?: unknown;
4018
4163
  refetch: () => void;
4019
- selectedEntryId?: string | undefined;
4020
- setSelectedEntryId: (id?: string | undefined) => void;
4164
+ selectedEntryId?: string;
4165
+ setSelectedEntryId: (id?: string) => void;
4021
4166
  closeSelectedEntry: () => void;
4022
4167
  create: (newJournalEntry: import("@layerfi/components/types/journal").NewApiJournalEntry) => void;
4023
- changeFormData: (name: string, value: string | number | import("@layerfi/components/types/general").BaseSelectOption | undefined, lineItemIndex?: number | undefined, accounts?: import("../../types/chart_of_accounts").LedgerAccountBalance[] | undefined) => void;
4168
+ changeFormData: (name: string, value: string | import("@layerfi/components/types/general").BaseSelectOption | undefined | number, lineItemIndex?: number, accounts?: import("../../types/chart_of_accounts").LedgerAccountBalance[] | undefined) => void;
4024
4169
  submitForm: () => void;
4025
4170
  cancelForm: () => void;
4026
4171
  addEntry: () => void;
4027
4172
  sendingForm: boolean;
4028
- form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes | undefined;
4029
- apiError?: string | undefined;
4030
- setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes | undefined) => void;
4173
+ form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes;
4174
+ apiError?: string;
4175
+ setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes) => void;
4031
4176
  addEntryLine: (direction: import("@layerfi/components/index").Direction) => void;
4032
4177
  removeEntryLine: (index: number) => void;
4033
- reverseEntry: (entryId: string) => Promise<{}>;
4178
+ reverseEntry: (entryId: string) => ReturnType<(baseUrl: string, accessToken: string | undefined, options?: {
4179
+ params?: Record<string, string | undefined> | undefined;
4180
+ body?: Record<string, unknown> | undefined;
4181
+ } | undefined) => Promise<Record<never, never>>>;
4034
4182
  }>;
4035
4183
 
4036
4184
  }
@@ -4039,7 +4187,6 @@ declare module '@layerfi/components/contexts/JournalContext/index' {
4039
4187
 
4040
4188
  }
4041
4189
  declare module '@layerfi/components/contexts/LayerContext/LayerContext' {
4042
- /// <reference types="react" />
4043
4190
  import { LayerContextValues } from '@layerfi/components/types';
4044
4191
  import { LayerContextHelpers, LayerThemeConfig } from '@layerfi/components/types/layer_context';
4045
4192
  export const LayerContext: import("react").Context<LayerContextValues & LayerContextHelpers & {
@@ -4055,23 +4202,22 @@ declare module '@layerfi/components/contexts/LayerContext/index' {
4055
4202
 
4056
4203
  }
4057
4204
  declare module '@layerfi/components/contexts/LedgerAccountsContext/LedgerAccountsContext' {
4058
- /// <reference types="react" />
4059
4205
  import { useLedgerAccounts } from '@layerfi/components/hooks/useLedgerAccounts/index';
4060
4206
  export type LedgerAccountsContextType = ReturnType<typeof useLedgerAccounts>;
4061
4207
  export const LedgerAccountsContext: import("react").Context<{
4062
- data?: import("@layerfi/components/types").LedgerAccounts | undefined;
4063
- entryData?: import("@layerfi/components/types").LedgerAccountsEntry | undefined;
4064
- isLoading?: boolean | undefined;
4065
- isLoadingEntry?: boolean | undefined;
4066
- isValidating?: boolean | undefined;
4067
- isValidatingEntry?: boolean | undefined;
4208
+ data?: import("@layerfi/components/types").LedgerAccounts;
4209
+ entryData?: import("@layerfi/components/types").LedgerAccountsEntry;
4210
+ isLoading?: boolean;
4211
+ isLoadingEntry?: boolean;
4212
+ isValidating?: boolean;
4213
+ isValidatingEntry?: boolean;
4068
4214
  error?: unknown;
4069
4215
  errorEntry?: unknown;
4070
4216
  refetch: () => void;
4071
- accountId?: string | undefined;
4072
- setAccountId: (id?: string | undefined) => void;
4073
- selectedEntryId?: string | undefined;
4074
- setSelectedEntryId: (id?: string | undefined) => void;
4217
+ accountId?: string;
4218
+ setAccountId: (id?: string) => void;
4219
+ selectedEntryId?: string;
4220
+ setSelectedEntryId: (id?: string) => void;
4075
4221
  closeSelectedEntry: () => void;
4076
4222
  }>;
4077
4223
 
@@ -4081,25 +4227,24 @@ declare module '@layerfi/components/contexts/LedgerAccountsContext/index' {
4081
4227
 
4082
4228
  }
4083
4229
  declare module '@layerfi/components/contexts/LinkedAccountsContext/LinkedAccountsContext' {
4084
- /// <reference types="react" />
4085
4230
  import { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/index';
4086
4231
  export type LinkedAccountsContextType = ReturnType<typeof useLinkedAccounts>;
4087
4232
  export const LinkedAccountsContext: import("react").Context<{
4088
- data?: import("@layerfi/components/types/linked_accounts").LinkedAccount[] | undefined;
4233
+ data?: import("@layerfi/components/types/linked_accounts").LinkedAccount[];
4089
4234
  isLoading: boolean;
4090
4235
  loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
4091
4236
  isValidating: boolean;
4092
4237
  error: unknown;
4093
- addConnection: (source: import("@layerfi/components/types/linked_accounts").Source) => void;
4094
- removeConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
4095
- repairConnection: (source: import("@layerfi/components/types/linked_accounts").Source, sourceId: string) => void;
4238
+ addConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource) => void;
4239
+ removeConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, sourceId: string) => void;
4240
+ repairConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, sourceId: string) => void;
4096
4241
  updateConnectionStatus: () => void;
4097
- refetchAccounts: () => void;
4242
+ refetchAccounts: () => import("@layerfi/components/types/utility/promises").Awaitable<void>;
4098
4243
  syncAccounts: () => void;
4099
- unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").Source, accountId: string) => void;
4100
- confirmAccount: (source: import("@layerfi/components/types/linked_accounts").Source, accountId: string) => void;
4101
- denyAccount: (source: import("@layerfi/components/types/linked_accounts").Source, accountId: string) => void;
4102
- breakConnection: (source: import("@layerfi/components/types/linked_accounts").Source, connectionExternalId: string) => void;
4244
+ unlinkAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
4245
+ confirmAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
4246
+ excludeAccount: (source: import("@layerfi/components/types/linked_accounts").AccountSource, accountId: string) => void;
4247
+ breakConnection: (source: import("@layerfi/components/types/linked_accounts").AccountSource, connectionExternalId: string) => void;
4103
4248
  }>;
4104
4249
 
4105
4250
  }
@@ -4108,7 +4253,6 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
4108
4253
 
4109
4254
  }
4110
4255
  declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
4111
- /// <reference types="react" />
4112
4256
  import { S3PresignedUrl } from '@layerfi/components/types/general';
4113
4257
  export const PNLComparisonContext: import("react").Context<{
4114
4258
  data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
@@ -4121,9 +4265,9 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
4121
4265
  setCompareMonths: (months: number) => void;
4122
4266
  compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
4123
4267
  setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
4124
- refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
4125
- getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat | undefined) => Promise<{
4126
- data?: S3PresignedUrl | undefined;
4268
+ refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean) => void;
4269
+ getProfitAndLossComparisonCsv: (dateRange: import("@layerfi/components/types").DateRange, moneyFormat?: import("../../types").MoneyFormat) => Promise<{
4270
+ data?: S3PresignedUrl;
4127
4271
  error?: unknown;
4128
4272
  }>;
4129
4273
  }>;
@@ -4134,7 +4278,6 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/inde
4134
4278
 
4135
4279
  }
4136
4280
  declare module '@layerfi/components/contexts/ReceiptsContext/ReceiptsContext' {
4137
- /// <reference types="react" />
4138
4281
  import { useReceipts } from '@layerfi/components/hooks/useReceipts/index';
4139
4282
  export type ReceiptsContextType = ReturnType<typeof useReceipts>;
4140
4283
  export const ReceiptsContext: import("react").Context<{
@@ -4154,7 +4297,6 @@ declare module '@layerfi/components/contexts/ReceiptsContext/index' {
4154
4297
 
4155
4298
  }
4156
4299
  declare module '@layerfi/components/contexts/StatementOfCashContext/StatementOfCashFlowContext' {
4157
- /// <reference types="react" />
4158
4300
  import { useStatementOfCashFlow } from '@layerfi/components/hooks/useStatementOfCashFlow/index';
4159
4301
  export type StatementOfCashFlowContextType = ReturnType<typeof useStatementOfCashFlow>;
4160
4302
  export const StatementOfCashFlowContext: import("react").Context<{
@@ -4185,14 +4327,13 @@ declare module '@layerfi/components/contexts/TableContext/index' {
4185
4327
 
4186
4328
  }
4187
4329
  declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
4188
- /// <reference types="react" />
4189
4330
  import { useTasks } from '@layerfi/components/hooks/useTasks/index';
4190
4331
  export type TasksContextType = ReturnType<typeof useTasks>;
4191
4332
  export const TasksContext: import("react").Context<{
4192
- data?: import("@layerfi/components/types/tasks").TaskTypes[] | undefined;
4193
- isLoading?: boolean | undefined;
4194
- loadedStatus?: import("@layerfi/components/types/general").LoadedStatus | undefined;
4195
- isValidating?: boolean | undefined;
4333
+ data?: import("@layerfi/components/types/tasks").TaskTypes[];
4334
+ isLoading?: boolean;
4335
+ loadedStatus?: import("@layerfi/components/types/general").LoadedStatus;
4336
+ isValidating?: boolean;
4196
4337
  error?: unknown;
4197
4338
  refetch: () => void;
4198
4339
  submitResponseToTask: (taskId: string, userResponse: string) => void;
@@ -4203,6 +4344,22 @@ declare module '@layerfi/components/contexts/TasksContext/TasksContext' {
4203
4344
  declare module '@layerfi/components/contexts/TasksContext/index' {
4204
4345
  export { TasksContext } from '@layerfi/components/contexts/TasksContext/TasksContext';
4205
4346
 
4347
+ }
4348
+ declare module '@layerfi/components/hooks/useAuth' {
4349
+ export function useAuth(): import("swr").SWRResponse<{
4350
+ access_token: string;
4351
+ token_type: string;
4352
+ expires_in: number;
4353
+ apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
4354
+ }, any, {
4355
+ refreshInterval: (latestData: {
4356
+ access_token: string;
4357
+ token_type: string;
4358
+ expires_in: number;
4359
+ apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
4360
+ } | undefined) => number;
4361
+ }>;
4362
+
4206
4363
  }
4207
4364
  declare module '@layerfi/components/hooks/useBalanceSheet/index' {
4208
4365
  export { useBalanceSheet } from '@layerfi/components/hooks/useBalanceSheet/useBalanceSheet';
@@ -4244,9 +4401,11 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
4244
4401
  dateRange?: Partial<DateRange>;
4245
4402
  tagFilter?: TagFilterInput;
4246
4403
  }
4247
- export type UseBankTransactions = (params?: {
4404
+ export type UseBankTransactionsParams = {
4248
4405
  scope?: DisplayState;
4249
- }) => {
4406
+ monthlyView?: boolean;
4407
+ };
4408
+ export type UseBankTransactions = (params?: UseBankTransactionsParams) => {
4250
4409
  data?: BankTransaction[];
4251
4410
  metadata?: Metadata;
4252
4411
  loadingStatus: LoadedStatus;
@@ -4270,7 +4429,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
4270
4429
 
4271
4430
  }
4272
4431
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
4273
- import { UseBankTransactions } from '@layerfi/components/hooks/useBankTransactions/types';
4432
+ import { UseBankTransactions } from "@layerfi/components/hooks/useBankTransactions/types";
4274
4433
  export const useBankTransactions: UseBankTransactions;
4275
4434
 
4276
4435
  }
@@ -4290,7 +4449,7 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/index' {
4290
4449
  }
4291
4450
  declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts' {
4292
4451
  import { FormError, DateRange, NewAccount } from '@layerfi/components/types';
4293
- import { ChartWithBalances, LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
4452
+ import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
4294
4453
  import { BaseSelectOption } from '@layerfi/components/types/general';
4295
4454
  export interface ChartOfAccountsForm {
4296
4455
  action: 'new' | 'edit';
@@ -4312,12 +4471,12 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
4312
4471
  };
4313
4472
  export const flattenAccounts: (accounts: LedgerAccountBalance[]) => LedgerAccountBalance[];
4314
4473
  export const useChartOfAccounts: ({ withDates, startDate: initialStartDate, endDate: initialEndDate }?: Props) => {
4315
- data: ChartWithBalances | undefined;
4474
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances | undefined;
4316
4475
  isLoading: boolean;
4317
4476
  isValidating: boolean;
4318
4477
  error: any;
4319
4478
  refetch: () => Promise<{
4320
- data: ChartWithBalances;
4479
+ data: import("@layerfi/components/types/chart_of_accounts").ChartWithBalances;
4321
4480
  } | undefined>;
4322
4481
  create: (newAccount: NewAccount) => Promise<void>;
4323
4482
  form: ChartOfAccountsForm | undefined;
@@ -4380,7 +4539,6 @@ declare module '@layerfi/components/hooks/useElementSize/index' {
4380
4539
 
4381
4540
  }
4382
4541
  declare module '@layerfi/components/hooks/useElementSize/useElementSize' {
4383
- /// <reference types="react" />
4384
4542
  export const useElementSize: <T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry, size: {
4385
4543
  width: number;
4386
4544
  height: number;
@@ -4394,10 +4552,26 @@ declare module '@layerfi/components/hooks/useElementViewSize/index' {
4394
4552
 
4395
4553
  }
4396
4554
  declare module '@layerfi/components/hooks/useElementViewSize/useElementViewSize' {
4397
- /// <reference types="react" />
4398
4555
  import { View } from '@layerfi/components/types/general';
4399
4556
  export const useElementViewSize: <T extends HTMLElement>(callback: (view: View) => void) => import("react").RefObject<T>;
4400
4557
 
4558
+ }
4559
+ declare module '@layerfi/components/hooks/useIsVisible/index' {
4560
+ export { useIsVisible } from '@layerfi/components/hooks/useIsVisible/useIsVisible';
4561
+
4562
+ }
4563
+ declare module '@layerfi/components/hooks/useIsVisible/useIsVisible' {
4564
+ /**
4565
+ * Attach via ref to the element you want to monitor visibility of the element on the page
4566
+ *
4567
+ * @example
4568
+ * const scrollPaginationRef = useRef(null)
4569
+ * const isVisible = useIsVisible(scrollPaginationRef)
4570
+ *
4571
+ * <div ref={scrollPaginationRef} />
4572
+ */
4573
+ export const useIsVisible: (ref: React.RefObject<HTMLElement>) => boolean;
4574
+
4401
4575
  }
4402
4576
  declare module '@layerfi/components/hooks/useJournal/index' {
4403
4577
  export { useJournal } from '@layerfi/components/hooks/useJournal/useJournal';
@@ -4452,7 +4626,7 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
4452
4626
  }
4453
4627
  declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
4454
4628
  import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
4455
- type UseLedgerAccounts = (showReversalEntries: Boolean) => {
4629
+ type UseLedgerAccounts = (showReversalEntries: boolean) => {
4456
4630
  data?: LedgerAccounts;
4457
4631
  entryData?: LedgerAccountsEntry;
4458
4632
  isLoading?: boolean;
@@ -4483,23 +4657,25 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/mockData' {
4483
4657
  }
4484
4658
  declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
4485
4659
  import { LoadedStatus } from '@layerfi/components/types/general';
4486
- import { LinkedAccount, Source } from '@layerfi/components/types/linked_accounts';
4660
+ import { LinkedAccount, AccountSource } from '@layerfi/components/types/linked_accounts';
4661
+ import type { Awaitable } from '@layerfi/components/types/utility/promises';
4662
+ export function getAccountsNeedingConfirmation(linkedAccounts: ReadonlyArray<LinkedAccount>): LinkedAccount[];
4487
4663
  type UseLinkedAccounts = () => {
4488
4664
  data?: LinkedAccount[];
4489
4665
  isLoading: boolean;
4490
4666
  loadingStatus: LoadedStatus;
4491
4667
  isValidating: boolean;
4492
4668
  error: unknown;
4493
- addConnection: (source: Source) => void;
4494
- removeConnection: (source: Source, sourceId: string) => void;
4495
- repairConnection: (source: Source, sourceId: string) => void;
4669
+ addConnection: (source: AccountSource) => void;
4670
+ removeConnection: (source: AccountSource, sourceId: string) => void;
4671
+ repairConnection: (source: AccountSource, sourceId: string) => void;
4496
4672
  updateConnectionStatus: () => void;
4497
- refetchAccounts: () => void;
4673
+ refetchAccounts: () => Awaitable<void>;
4498
4674
  syncAccounts: () => void;
4499
- unlinkAccount: (source: Source, accountId: string) => void;
4500
- confirmAccount: (source: Source, accountId: string) => void;
4501
- denyAccount: (source: Source, accountId: string) => void;
4502
- breakConnection: (source: Source, connectionExternalId: string) => void;
4675
+ unlinkAccount: (source: AccountSource, accountId: string) => void;
4676
+ confirmAccount: (source: AccountSource, accountId: string) => void;
4677
+ excludeAccount: (source: AccountSource, accountId: string) => void;
4678
+ breakConnection: (source: AccountSource, connectionExternalId: string) => void;
4503
4679
  };
4504
4680
  export const useLinkedAccounts: UseLinkedAccounts;
4505
4681
  export {};
@@ -4588,7 +4764,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossLTM'
4588
4764
  data: ProfitAndLossSummaryData[];
4589
4765
  isLoading?: boolean;
4590
4766
  loaded?: LoadedStatus;
4591
- error?: any;
4767
+ error?: unknown;
4592
4768
  pullData: (date: Date) => void;
4593
4769
  refetch: () => void;
4594
4770
  };
@@ -4615,7 +4791,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLossQuery
4615
4791
  data?: ProfitAndLoss;
4616
4792
  isLoading: boolean;
4617
4793
  isValidating: boolean;
4618
- error: any;
4794
+ error: unknown;
4619
4795
  refetch: () => void;
4620
4796
  startDate: Date;
4621
4797
  endDate: Date;
@@ -5153,6 +5329,43 @@ declare module '@layerfi/components/models/Money' {
5153
5329
  };
5154
5330
  export default _default;
5155
5331
 
5332
+ }
5333
+ declare module '@layerfi/components/providers/AccountConfirmationStoreProvider' {
5334
+ import React, { type PropsWithChildren } from 'react';
5335
+ const ACCOUNT_CONFIRMATION_VISIBILITY: readonly ["PRELOADED", "DEFAULT", "DISMISSED"];
5336
+ type AccountConfirmationVisibility = typeof ACCOUNT_CONFIRMATION_VISIBILITY[number];
5337
+ type AccountConfirmationStoreShape = {
5338
+ visibility: AccountConfirmationVisibility;
5339
+ actions: {
5340
+ dismiss: () => void;
5341
+ preload: () => void;
5342
+ reset: () => void;
5343
+ };
5344
+ };
5345
+ export function useAccountConfirmationStore(): AccountConfirmationStoreShape;
5346
+ export function useAccountConfirmationStoreActions(): {
5347
+ dismiss: () => void;
5348
+ preload: () => void;
5349
+ reset: () => void;
5350
+ };
5351
+ type AccountConfirmationStoreProviderProps = PropsWithChildren<{
5352
+ initialVisibility?: AccountConfirmationVisibility;
5353
+ }>;
5354
+ export function AccountConfirmationStoreProvider({ children, initialVisibility, }: AccountConfirmationStoreProviderProps): React.JSX.Element;
5355
+ export {};
5356
+
5357
+ }
5358
+ declare module '@layerfi/components/providers/AuthInputProvider' {
5359
+ import React, { type PropsWithChildren } from 'react';
5360
+ type AuthInputShape = {
5361
+ appId?: string;
5362
+ appSecret?: string;
5363
+ businessAccessToken?: string;
5364
+ };
5365
+ export function useAuthInput(): AuthInputShape;
5366
+ export function AuthInputProvider({ appId, appSecret, businessAccessToken, children, }: PropsWithChildren<AuthInputShape>): React.JSX.Element;
5367
+ export {};
5368
+
5156
5369
  }
5157
5370
  declare module '@layerfi/components/providers/BankTransactionsProvider/BankTransactionsProvider' {
5158
5371
  import React, { ReactNode } from 'react';
@@ -5169,38 +5382,83 @@ declare module '@layerfi/components/providers/BankTransactionsProvider/index' {
5169
5382
  }
5170
5383
  declare module '@layerfi/components/providers/BusinessProvider/BusinessProvider' {
5171
5384
  import React, { PropsWithChildren } from 'react';
5172
- import { Props } from '@layerfi/components/providers/LayerProvider/LayerProvider';
5173
- export const BusinessProvider: ({ appId, appSecret, businessId, children, businessAccessToken, environment, theme, usePlaidSandbox, onError, eventCallbacks, }: PropsWithChildren<Props>) => React.JSX.Element;
5385
+ import { LayerProviderProps } from '@layerfi/components/providers/LayerProvider/LayerProvider';
5386
+ type BusinessProviderProps = PropsWithChildren<Pick<LayerProviderProps, 'businessId' | 'theme' | 'onError' | 'eventCallbacks'>>;
5387
+ export const BusinessProvider: ({ businessId, children, theme, onError, eventCallbacks, }: PropsWithChildren<BusinessProviderProps>) => React.JSX.Element;
5388
+ export {};
5389
+
5390
+ }
5391
+ declare module '@layerfi/components/providers/Environment/EnvironmentInputProvider' {
5392
+ import React, { type PropsWithChildren } from 'react';
5393
+ import { type Environment } from '@layerfi/components/providers/Environment/environmentConfigs';
5394
+ type EnvironmentInputShape = {
5395
+ environment?: Environment;
5396
+ usePlaidSandbox?: boolean;
5397
+ };
5398
+ export function useEnvironment(): {
5399
+ environment: "sandbox" | "production" | "staging" | "internalStaging";
5400
+ apiUrl: "https://api.layerfi.com" | "https://sandbox.layerfi.com" | "https://staging.layerfi.com";
5401
+ authUrl: "https://auth.layerfi.com/oauth2/token";
5402
+ scope: "https://api.layerfi.com/production" | "https://sandbox.layerfi.com/sandbox";
5403
+ usePlaidSandbox: boolean;
5404
+ };
5405
+ export function EnvironmentInputProvider({ children, environment, usePlaidSandbox, }: PropsWithChildren<EnvironmentInputShape>): React.JSX.Element;
5406
+ export {};
5407
+
5408
+ }
5409
+ declare module '@layerfi/components/providers/Environment/environmentConfigs' {
5410
+ const ENVIRONMENTS: readonly ["production", "sandbox", "staging", "internalStaging"];
5411
+ export type Environment = typeof ENVIRONMENTS[number];
5412
+ export const EnvironmentConfigs: {
5413
+ readonly production: {
5414
+ readonly apiUrl: "https://api.layerfi.com";
5415
+ readonly authUrl: "https://auth.layerfi.com/oauth2/token";
5416
+ readonly scope: "https://api.layerfi.com/production";
5417
+ readonly usePlaidSandbox: false;
5418
+ };
5419
+ readonly sandbox: {
5420
+ readonly apiUrl: "https://sandbox.layerfi.com";
5421
+ readonly authUrl: "https://auth.layerfi.com/oauth2/token";
5422
+ readonly scope: "https://sandbox.layerfi.com/sandbox";
5423
+ readonly usePlaidSandbox: true;
5424
+ };
5425
+ readonly staging: {
5426
+ readonly apiUrl: "https://staging.layerfi.com";
5427
+ readonly authUrl: "https://auth.layerfi.com/oauth2/token";
5428
+ readonly scope: "https://sandbox.layerfi.com/sandbox";
5429
+ readonly usePlaidSandbox: true;
5430
+ };
5431
+ readonly internalStaging: {
5432
+ readonly apiUrl: "https://staging.layerfi.com";
5433
+ readonly authUrl: "https://auth.layerfi.com/oauth2/token";
5434
+ readonly scope: "https://sandbox.layerfi.com/sandbox";
5435
+ readonly usePlaidSandbox: true;
5436
+ };
5437
+ };
5438
+ export {};
5174
5439
 
5175
5440
  }
5176
5441
  declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
5177
5442
  import React, { PropsWithChildren } from 'react';
5178
5443
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
5179
5444
  import { LayerThemeConfig } from '@layerfi/components/types/layer_context';
5180
- type LayerEnvironmentConfig = {
5181
- url: string;
5182
- scope: string;
5183
- apiUrl: string;
5184
- usePlaidSandbox: boolean;
5185
- };
5186
- export const LayerEnvironment: Record<string, LayerEnvironmentConfig>;
5445
+ import type { Environment } from '@layerfi/components/providers/Environment/environmentConfigs';
5187
5446
  export type EventCallbacks = {
5188
5447
  onTransactionCategorized?: (bankTransactionId: string) => void;
5189
5448
  onTransactionsFetched?: () => void;
5190
5449
  };
5191
- export type Props = {
5450
+ export type LayerProviderProps = {
5192
5451
  businessId: string;
5193
5452
  appId?: string;
5194
5453
  appSecret?: string;
5195
5454
  businessAccessToken?: string;
5196
- environment?: keyof typeof LayerEnvironment;
5455
+ environment?: Environment;
5197
5456
  theme?: LayerThemeConfig;
5198
5457
  usePlaidSandbox?: boolean;
5199
5458
  onError?: (error: LayerError) => void;
5200
5459
  eventCallbacks?: EventCallbacks;
5201
5460
  };
5202
- export const LayerProvider: (props: PropsWithChildren<Props>) => React.JSX.Element;
5203
- export {};
5461
+ export const LayerProvider: ({ appId, appSecret, businessAccessToken, environment, usePlaidSandbox, ...restProps }: PropsWithChildren<LayerProviderProps>) => React.JSX.Element;
5204
5462
 
5205
5463
  }
5206
5464
  declare module '@layerfi/components/providers/LayerProvider/index' {
@@ -5208,12 +5466,8 @@ declare module '@layerfi/components/providers/LayerProvider/index' {
5208
5466
 
5209
5467
  }
5210
5468
  declare module '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider' {
5211
- import React, { ReactNode } from 'react';
5212
- interface LinkedAccountsProviderProps {
5213
- children: ReactNode;
5214
- }
5215
- export const LinkedAccountsProvider: ({ children, }: LinkedAccountsProviderProps) => React.JSX.Element;
5216
- export {};
5469
+ import React, { type PropsWithChildren } from 'react';
5470
+ export const LinkedAccountsProvider: ({ children, }: PropsWithChildren) => React.JSX.Element;
5217
5471
 
5218
5472
  }
5219
5473
  declare module '@layerfi/components/providers/LinkedAccountsProvider/index' {
@@ -5311,7 +5565,7 @@ declare module '@layerfi/components/types/bank_transactions' {
5311
5565
  processing?: boolean;
5312
5566
  suggested_matches?: SuggestedMatch[];
5313
5567
  match?: BankTransactionMatch;
5314
- document_ids: String[];
5568
+ document_ids: string[];
5315
5569
  }
5316
5570
  export interface SuggestedMatch {
5317
5571
  id: string;
@@ -5436,7 +5690,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
5436
5690
  export interface ChartOfAccounts {
5437
5691
  type: string;
5438
5692
  accounts: Account[];
5439
- entries?: any[];
5693
+ entries?: unknown[];
5440
5694
  }
5441
5695
  export interface AccountEntry {
5442
5696
  account: Account;
@@ -5532,6 +5786,7 @@ declare module '@layerfi/components/types/general' {
5532
5786
  fileType: string;
5533
5787
  fileName: string;
5534
5788
  createdAt: string;
5789
+ documentId?: string;
5535
5790
  }
5536
5791
  export type LoadedStatus = 'initial' | 'loading' | 'complete';
5537
5792
  export enum DataModel {
@@ -5614,19 +5869,14 @@ declare module '@layerfi/components/types/layer_context' {
5614
5869
  import { LayerError } from '@layerfi/components/models/ErrorHandler';
5615
5870
  import { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
5616
5871
  import { Business, Category } from '@layerfi/components/types';
5617
- import { ExpiringOAuthResponse } from '@layerfi/components/types/authentication';
5618
5872
  import { DataModel } from '@layerfi/components/types/general';
5619
5873
  export type LayerContextValues = {
5620
- auth: ExpiringOAuthResponse;
5621
5874
  businessId: string;
5622
5875
  business?: Business;
5623
5876
  categories: Category[];
5624
- apiUrl: string;
5625
5877
  theme?: LayerThemeConfig;
5626
5878
  colors: ColorsPalette;
5627
- usePlaidSandbox: boolean;
5628
5879
  onboardingStep?: OnboardingStep;
5629
- environment: string;
5630
5880
  toasts: (ToastProps & {
5631
5881
  isExiting: boolean;
5632
5882
  })[];
@@ -5692,7 +5942,6 @@ declare module '@layerfi/components/types/layer_context' {
5692
5942
  }
5693
5943
  export type OnboardingStep = undefined | 'connectAccount' | 'complete';
5694
5944
  export enum LayerContextActionName {
5695
- setAuth = "LayerContext.setAuth",
5696
5945
  setBusiness = "LayerContext.setBusiness",
5697
5946
  setCategories = "LayerContext.setCategories",
5698
5947
  setTheme = "LayerContext.setTheme",
@@ -5703,11 +5952,6 @@ declare module '@layerfi/components/types/layer_context' {
5703
5952
  setToastExit = "LayerContext.setToastExit"
5704
5953
  }
5705
5954
  export type LayerContextAction = {
5706
- type: LayerContextActionName.setAuth;
5707
- payload: {
5708
- auth: LayerContextValues['auth'];
5709
- };
5710
- } | {
5711
5955
  type: LayerContextActionName.setBusiness;
5712
5956
  payload: {
5713
5957
  business: LayerContextValues['business'];
@@ -5869,19 +6113,31 @@ declare module '@layerfi/components/types/line_item' {
5869
6113
 
5870
6114
  }
5871
6115
  declare module '@layerfi/components/types/linked_accounts' {
5872
- import { PlaidInstitution } from 'react-plaid-link';
5873
- export interface LinkedAccounts {
5874
- type: string;
5875
- external_accounts: LinkedAccount[];
5876
- }
5877
- export interface LinkedAccount {
6116
+ import type { PlaidInstitution } from 'react-plaid-link';
6117
+ import type { EnumWithUnknownValues } from '@layerfi/components/types/utility/enumWithUnknownValues';
6118
+ export type PublicToken = {
6119
+ public_token: string;
6120
+ institution: PlaidInstitution | null;
6121
+ };
6122
+ export type AccountSource = EnumWithUnknownValues<'PLAID' | 'STRIPE'>;
6123
+ const KNOWN_ACCOUNT_NOTIFICATION_TYPES: readonly ["CONFIRM_RELEVANT", "CONFIRM_UNIQUE"];
6124
+ type KnownAccountNotificationType = typeof KNOWN_ACCOUNT_NOTIFICATION_TYPES[number];
6125
+ const KNOWN_ACCOUNT_NOTIFICATION_SCOPES: readonly ["USER"];
6126
+ type KnownAccountNotificationScope = typeof KNOWN_ACCOUNT_NOTIFICATION_SCOPES[number];
6127
+ type AccountNotificationType = EnumWithUnknownValues<KnownAccountNotificationType>;
6128
+ type AccountNotificationScope = EnumWithUnknownValues<KnownAccountNotificationScope>;
6129
+ type AccountNotification = {
6130
+ type: AccountNotificationType;
6131
+ scope: AccountNotificationScope;
6132
+ };
6133
+ export type LinkedAccount = {
5878
6134
  id: string;
5879
6135
  external_account_external_id: string;
5880
- external_account_source: Source;
6136
+ external_account_source: AccountSource;
5881
6137
  external_account_name: string;
5882
6138
  latest_balance_timestamp: {
5883
6139
  external_account_external_id: string;
5884
- external_account_source: Source;
6140
+ external_account_source: AccountSource;
5885
6141
  balance: number;
5886
6142
  at: string;
5887
6143
  created_at: string;
@@ -5891,18 +6147,18 @@ declare module '@layerfi/components/types/linked_accounts' {
5891
6147
  name: string;
5892
6148
  logo: string | null;
5893
6149
  };
6150
+ notifications?: ReadonlyArray<AccountNotification>;
5894
6151
  mask?: string;
5895
6152
  connection_id?: string;
5896
6153
  connection_external_id?: string;
5897
6154
  connection_needs_repair_as_of: string | null;
5898
- requires_user_confirmation_as_of: string | null;
5899
6155
  is_syncing: boolean;
5900
- }
5901
- export type PublicToken = {
5902
- public_token: string;
5903
- institution: PlaidInstitution | null;
5904
6156
  };
5905
- export type Source = 'PLAID' | 'STRIPE';
6157
+ export type LinkedAccounts = {
6158
+ type: string;
6159
+ external_accounts: Array<LinkedAccount>;
6160
+ };
6161
+ export {};
5906
6162
 
5907
6163
  }
5908
6164
  declare module '@layerfi/components/types/profit_and_loss' {
@@ -6078,6 +6334,25 @@ declare module '@layerfi/components/types/tasks' {
6078
6334
  export type TasksResponseType = 'FREE_RESPONSE' | 'UPLOAD_DOCUMENT';
6079
6335
  export function isComplete(taskType: TasksStatusType): boolean;
6080
6336
 
6337
+ }
6338
+ declare module '@layerfi/components/types/utility/enumWithUnknownValues' {
6339
+ type UnknownEnumValue = string & Record<never, never>;
6340
+ export type EnumWithUnknownValues<T extends string> = T | UnknownEnumValue;
6341
+ export {};
6342
+
6343
+ }
6344
+ declare module '@layerfi/components/types/utility/oneOf' {
6345
+ type OnlyFirst<First, Second> = First & {
6346
+ [Key in keyof Omit<Second, keyof First>]: never;
6347
+ };
6348
+ type MergeTypes<Types extends Array<unknown>, Result = Record<never, never>> = Types extends [infer Head, ...infer Remaining] ? MergeTypes<Remaining, Result & Head> : Result;
6349
+ export type OneOf<Types extends Array<unknown>, Result = never, AllProperties = MergeTypes<Types>> = Types extends [infer Head, ...infer Remaining] ? OneOf<Remaining, Result | OnlyFirst<Head, AllProperties>, AllProperties> : Result;
6350
+ export {};
6351
+
6352
+ }
6353
+ declare module '@layerfi/components/types/utility/promises' {
6354
+ export type Awaitable<T> = T | Promise<T>;
6355
+
6081
6356
  }
6082
6357
  declare module '@layerfi/components/types' {
6083
6358
  export { OAuthResponse } from '@layerfi/components/types/authentication';
@@ -6113,11 +6388,11 @@ declare module '@layerfi/components/utils/bankTransactions' {
6113
6388
  import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
6114
6389
  import { BankTransaction, DateRange } from '@layerfi/components/types';
6115
6390
  export const hasMatch: (bankTransaction?: BankTransaction) => boolean;
6116
- export const isCredit: ({ direction }: Pick<BankTransaction, 'direction'>) => boolean;
6391
+ export const isCredit: ({ direction }: Pick<BankTransaction, "direction">) => boolean;
6117
6392
  export const isAlreadyMatched: (bankTransaction?: BankTransaction) => string | undefined;
6118
6393
  export const countTransactionsToReview: ({ transactions, dateRange, }: {
6119
- transactions?: BankTransaction[] | undefined;
6120
- dateRange?: DateRange | undefined;
6394
+ transactions?: BankTransaction[];
6395
+ dateRange?: DateRange;
6121
6396
  }) => number;
6122
6397
  export const getCategorizePayload: (category: CategoryOption) => {
6123
6398
  type: "Exclusion";
@@ -6234,6 +6509,15 @@ declare module '@layerfi/components/utils/styleUtils/toDataProperties' {
6234
6509
  export function toDataProperties<T extends Record<string, unknown>>(input: T): DataProperties<T>;
6235
6510
  export {};
6236
6511
 
6512
+ }
6513
+ declare module '@layerfi/components/utils/swr/defaultSWRConfig' {
6514
+ export const DEFAULT_SWR_CONFIG: {
6515
+ readonly refreshInterval: 0;
6516
+ readonly revalidateOnFocus: false;
6517
+ readonly revalidateOnReconnect: false;
6518
+ readonly revalidateIfStale: false;
6519
+ };
6520
+
6237
6521
  }
6238
6522
  declare module '@layerfi/components/views/AccountingOverview/AccountingOverview' {
6239
6523
  import React, { ReactNode } from 'react';