@layerfi/components 0.1.5 → 0.1.7

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
@@ -250,11 +250,14 @@ declare module '@layerfi/components/components/BankTransactionListItem/BankTrans
250
250
  import React from 'react';
251
251
  import { BankTransaction } from '@layerfi/components/types';
252
252
  type Props = {
253
+ index: number;
253
254
  dateFormat: string;
254
255
  bankTransaction: BankTransaction;
255
256
  editable: boolean;
257
+ removeTransaction: (id: string) => void;
258
+ containerWidth?: number;
256
259
  };
257
- export const BankTransactionListItem: ({ dateFormat, bankTransaction, editable, }: Props) => React.JSX.Element | null;
260
+ export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, containerWidth, }: Props) => React.JSX.Element | null;
258
261
  export {};
259
262
 
260
263
  }
@@ -266,13 +269,17 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
266
269
  import React from 'react';
267
270
  import { BankTransaction, Category } from '@layerfi/components/types';
268
271
  type Props = {
272
+ index: number;
269
273
  dateFormat: string;
270
274
  bankTransaction: BankTransaction;
271
275
  editable: boolean;
276
+ removeTransaction: (id: string) => void;
277
+ containerWidth?: number;
272
278
  };
279
+ export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
273
280
  export const extractDescriptionForSplit: (category: Category) => string;
274
281
  export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
275
- export const BankTransactionRow: ({ dateFormat, bankTransaction, editable, }: Props) => React.JSX.Element | null;
282
+ export const BankTransactionRow: ({ index, dateFormat, bankTransaction, editable, removeTransaction, containerWidth, }: Props) => React.JSX.Element | null;
276
283
  export {};
277
284
 
278
285
  }
@@ -320,14 +327,16 @@ declare module '@layerfi/components/components/Button/Button' {
320
327
  primary = "primary",
321
328
  secondary = "secondary"
322
329
  }
330
+ export type ButtonJustify = 'center' | 'space-between' | 'start';
323
331
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
324
332
  variant?: ButtonVariant;
325
333
  leftIcon?: ReactNode;
326
334
  rightIcon?: ReactNode;
327
335
  iconOnly?: ReactNode;
328
336
  iconAsPrimary?: boolean;
337
+ justify?: ButtonJustify;
329
338
  }
330
- export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, ...props }: ButtonProps) => React.JSX.Element;
339
+ export const Button: ({ className, children, variant, leftIcon, rightIcon, iconOnly, iconAsPrimary, justify, ...props }: ButtonProps) => React.JSX.Element;
331
340
 
332
341
  }
333
342
  declare module '@layerfi/components/components/Button/IconButton' {
@@ -338,6 +347,16 @@ declare module '@layerfi/components/components/Button/IconButton' {
338
347
  }
339
348
  export const IconButton: ({ className, children, icon, active, ...props }: IconButtonProps) => React.JSX.Element;
340
349
 
350
+ }
351
+ declare module '@layerfi/components/components/Button/RetryButton' {
352
+ import React, { ButtonHTMLAttributes } from 'react';
353
+ export interface RetryButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
354
+ processing?: boolean;
355
+ disabled?: boolean;
356
+ error: string;
357
+ }
358
+ export const RetryButton: ({ className, processing, disabled, error, children, ...props }: RetryButtonProps) => React.JSX.Element;
359
+
341
360
  }
342
361
  declare module '@layerfi/components/components/Button/SubmitButton' {
343
362
  import React, { ButtonHTMLAttributes } from 'react';
@@ -364,8 +383,9 @@ declare module '@layerfi/components/components/Button/TextButton' {
364
383
  }
365
384
  declare module '@layerfi/components/components/Button/index' {
366
385
  export { Button, ButtonVariant } from '@layerfi/components/components/Button/Button';
367
- export { SubmitButton } from '@layerfi/components/components/Button/SubmitButton';
368
386
  export { IconButton } from '@layerfi/components/components/Button/IconButton';
387
+ export { RetryButton } from '@layerfi/components/components/Button/RetryButton';
388
+ export { SubmitButton } from '@layerfi/components/components/Button/SubmitButton';
369
389
  export { TextButton } from '@layerfi/components/components/Button/TextButton';
370
390
 
371
391
  }
@@ -510,6 +530,17 @@ declare module '@layerfi/components/components/DataState/DataState' {
510
530
  declare module '@layerfi/components/components/DataState/index' {
511
531
  export { DataState, DataStateStatus } from '@layerfi/components/components/DataState/DataState';
512
532
 
533
+ }
534
+ declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErrorNotifications' {
535
+ import React from 'react';
536
+ import { BankTransaction } from '@layerfi/components/types';
537
+ interface APIErrorNotificationsProps {
538
+ bankTransaction: BankTransaction;
539
+ containerWidth?: number;
540
+ }
541
+ export const APIErrorNotifications: ({ bankTransaction, containerWidth, }: APIErrorNotificationsProps) => React.JSX.Element;
542
+ export {};
543
+
513
544
  }
514
545
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow' {
515
546
  import React from 'react';
@@ -519,7 +550,8 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
519
550
  isOpen?: boolean;
520
551
  asListItem?: boolean;
521
552
  submitBtnText?: string;
522
- close?: () => void;
553
+ containerWidth?: number;
554
+ editable?: boolean;
523
555
  };
524
556
  export type SaveHandle = {
525
557
  save: () => void;
@@ -559,8 +591,9 @@ declare module '@layerfi/components/components/Input/Input' {
559
591
  export interface InputProps extends HTMLProps<HTMLInputElement> {
560
592
  isInvalid?: boolean;
561
593
  errorMessage?: string;
594
+ leftText?: string;
562
595
  }
563
- export const Input: ({ className, isInvalid, errorMessage, ...props }: InputProps) => React.JSX.Element;
596
+ export const Input: ({ className, isInvalid, errorMessage, leftText, ...props }: InputProps) => React.JSX.Element;
564
597
 
565
598
  }
566
599
  declare module '@layerfi/components/components/Input/InputGroup' {
@@ -579,6 +612,24 @@ declare module '@layerfi/components/components/Input/index' {
579
612
  export { InputGroup } from '@layerfi/components/components/Input/InputGroup';
580
613
  export { FileInput } from '@layerfi/components/components/Input/FileInput';
581
614
 
615
+ }
616
+ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountThumb' {
617
+ import React from 'react';
618
+ import { LinkedAccount } from '@layerfi/components/types/linked_accounts';
619
+ export interface LinkedAccountThumbProps {
620
+ account: LinkedAccount;
621
+ }
622
+ export const LinkedAccountThumb: ({ account }: LinkedAccountThumbProps) => React.JSX.Element;
623
+
624
+ }
625
+ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
626
+ import React from 'react';
627
+ export const LinkedAccounts: () => React.JSX.Element;
628
+
629
+ }
630
+ declare module '@layerfi/components/components/LinkedAccounts/index' {
631
+ export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/LinkedAccounts';
632
+
582
633
  }
583
634
  declare module '@layerfi/components/components/Loader/Loader' {
584
635
  import React, { ReactNode } from 'react';
@@ -600,8 +651,9 @@ declare module '@layerfi/components/components/MatchForm/MatchForm' {
600
651
  bankTransaction: BankTransaction;
601
652
  selectedMatchId?: string;
602
653
  setSelectedMatchId: (val?: string) => void;
654
+ matchFormError?: string;
603
655
  }
604
- export const MatchForm: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, }: MatchFormProps) => React.JSX.Element;
656
+ export const MatchForm: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, matchFormError, }: MatchFormProps) => React.JSX.Element;
605
657
 
606
658
  }
607
659
  declare module '@layerfi/components/components/MatchForm/index' {
@@ -639,12 +691,30 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
639
691
  Chart: () => React.JSX.Element;
640
692
  Context: React.Context<{
641
693
  data: import("@layerfi/components/types").ProfitAndLoss | undefined;
694
+ filteredData: import("@layerfi/components/types/line_item").LineBaseItem[];
695
+ filteredTotal?: number | undefined;
642
696
  isLoading: boolean;
643
697
  isValidating: boolean;
644
698
  error: unknown;
645
699
  dateRange: import("@layerfi/components/types").DateRange;
646
700
  changeDateRange: (dateRange: Partial<import("@layerfi/components/types").DateRange>) => void;
647
701
  refetch: () => void;
702
+ sidebarScope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
703
+ setSidebarScope: (view: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope) => void;
704
+ filters: {
705
+ expenses: {
706
+ sortBy?: string | undefined;
707
+ sortDirection?: import("@layerfi/components/types").SortDirection | undefined;
708
+ types?: string[] | undefined;
709
+ } | undefined;
710
+ revenue: {
711
+ sortBy?: string | undefined;
712
+ sortDirection?: import("@layerfi/components/types").SortDirection | undefined;
713
+ types?: string[] | undefined;
714
+ } | undefined;
715
+ };
716
+ sortBy: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, field: string, direction?: import("../../types").SortDirection | undefined) => void;
717
+ setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
648
718
  }>;
649
719
  DatePicker: () => React.JSX.Element;
650
720
  Summaries: ({ vertical, revenueLabel, }: {
@@ -690,6 +760,15 @@ declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAnd
690
760
  declare module '@layerfi/components/components/ProfitAndLossDatePicker/index' {
691
761
  export { ProfitAndLossDatePicker } from '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker';
692
762
 
763
+ }
764
+ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts' {
765
+ import React from 'react';
766
+ export const ProfitAndLossDetailedCharts: () => React.JSX.Element;
767
+
768
+ }
769
+ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/index' {
770
+ export { ProfitAndLossDetailedCharts } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
771
+
693
772
  }
694
773
  declare module '@layerfi/components/components/ProfitAndLossRow/ProfitAndLossRow' {
695
774
  import React from 'react';
@@ -745,7 +824,12 @@ declare module '@layerfi/components/components/ProfitAndLossTable/index' {
745
824
  }
746
825
  declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView' {
747
826
  import React from 'react';
748
- export const ProfitAndLossView: () => React.JSX.Element;
827
+ export interface ProfitAndLossViewProps {
828
+ hideTable?: boolean;
829
+ hideChart?: boolean;
830
+ showDetailedCharts?: boolean;
831
+ }
832
+ export const ProfitAndLossView: (props: ProfitAndLossViewProps) => React.JSX.Element;
749
833
 
750
834
  }
751
835
  declare module '@layerfi/components/components/ProfitAndLossView/index' {
@@ -944,6 +1028,13 @@ declare module '@layerfi/components/components/Tooltip/useTooltip' {
944
1028
  disabled: boolean | undefined;
945
1029
  };
946
1030
 
1031
+ }
1032
+ declare module '@layerfi/components/components/Typography/ErrorText' {
1033
+ import React from 'react';
1034
+ import { TextProps } from '@layerfi/components/components/Typography/Text';
1035
+ export type ErrorTextProps = TextProps;
1036
+ export const ErrorText: ({ className, ...props }: ErrorTextProps) => React.JSX.Element;
1037
+
947
1038
  }
948
1039
  declare module '@layerfi/components/components/Typography/Heading' {
949
1040
  import React, { ReactNode } from 'react';
@@ -997,8 +1088,9 @@ declare module '@layerfi/components/components/Typography/Text' {
997
1088
 
998
1089
  }
999
1090
  declare module '@layerfi/components/components/Typography/index' {
1000
- export { Text, TextSize, TextWeight } from '@layerfi/components/components/Typography/Text';
1091
+ export { Text, TextSize, TextWeight, TextUseTooltip } from '@layerfi/components/components/Typography/Text';
1001
1092
  export { Heading, HeadingSize } from '@layerfi/components/components/Typography/Heading';
1093
+ export { ErrorText } from '@layerfi/components/components/Typography/ErrorText';
1002
1094
 
1003
1095
  }
1004
1096
  declare module '@layerfi/components/config/general' {
@@ -1144,6 +1236,25 @@ declare module '@layerfi/components/hooks/useLayerContext/useLayerContext' {
1144
1236
  setTheme: (theme: import("@layerfi/components/types/layer_context").LayerThemeConfig) => void;
1145
1237
  };
1146
1238
 
1239
+ }
1240
+ declare module '@layerfi/components/hooks/useLinkedAccounts/index' {
1241
+ export { useLinkedAccounts } from '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts';
1242
+
1243
+ }
1244
+ declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
1245
+ import { Metadata } from '@layerfi/components/types';
1246
+ import { LinkedAccount } from '@layerfi/components/types/linked_accounts';
1247
+ type UseLinkedAccounts = () => {
1248
+ data?: LinkedAccount[];
1249
+ metadata: Metadata;
1250
+ isLoading: boolean;
1251
+ isValidating: boolean;
1252
+ error: unknown;
1253
+ refetch: () => void;
1254
+ };
1255
+ export const useLinkedAccounts: UseLinkedAccounts;
1256
+ export {};
1257
+
1147
1258
  }
1148
1259
  declare module '@layerfi/components/hooks/usePagination/index' {
1149
1260
  export { usePagination, DOTS } from '@layerfi/components/hooks/usePagination/usePagination';
@@ -1166,7 +1277,10 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/index' {
1166
1277
 
1167
1278
  }
1168
1279
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
1169
- import { ProfitAndLoss, DateRange, ReportingBasis } from '@layerfi/components/types';
1280
+ import { ProfitAndLoss, DateRange, ReportingBasis, SortDirection } from '@layerfi/components/types';
1281
+ import { LineBaseItem } from '@layerfi/components/types/line_item';
1282
+ export type Scope = 'expenses' | 'revenue';
1283
+ export type SidebarScope = Scope | undefined;
1170
1284
  type Props = {
1171
1285
  startDate?: Date;
1172
1286
  endDate?: Date;
@@ -1176,14 +1290,27 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
1176
1290
  };
1177
1291
  reportingBasis?: ReportingBasis;
1178
1292
  };
1293
+ type ProfitAndLossFilter = {
1294
+ sortBy?: string;
1295
+ sortDirection?: SortDirection;
1296
+ types?: string[];
1297
+ };
1298
+ type ProfitAndLossFilters = Record<Scope, ProfitAndLossFilter | undefined>;
1179
1299
  type UseProfitAndLoss = (props?: Props) => {
1180
1300
  data: ProfitAndLoss | undefined;
1301
+ filteredData: LineBaseItem[];
1302
+ filteredTotal?: number;
1181
1303
  isLoading: boolean;
1182
1304
  isValidating: boolean;
1183
1305
  error: unknown;
1184
1306
  dateRange: DateRange;
1185
1307
  changeDateRange: (dateRange: Partial<DateRange>) => void;
1186
1308
  refetch: () => void;
1309
+ sidebarScope: SidebarScope;
1310
+ setSidebarScope: (view: SidebarScope) => void;
1311
+ filters: ProfitAndLossFilters;
1312
+ sortBy: (scope: Scope, field: string, direction?: SortDirection) => void;
1313
+ setFilterTypes: (scope: Scope, types: string[]) => void;
1187
1314
  };
1188
1315
  export const useProfitAndLoss: UseProfitAndLoss;
1189
1316
  export {};
@@ -1230,6 +1357,13 @@ declare module '@layerfi/components/icons/ChevronDown' {
1230
1357
  const ChevronDown: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1231
1358
  export default ChevronDown;
1232
1359
 
1360
+ }
1361
+ declare module '@layerfi/components/icons/ChevronDownFill' {
1362
+ import * as React from 'react';
1363
+ import { IconSvgProps } from '@layerfi/components/icons/types';
1364
+ const ChevronDownFill: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1365
+ export default ChevronDownFill;
1366
+
1233
1367
  }
1234
1368
  declare module '@layerfi/components/icons/ChevronLeft' {
1235
1369
  import * as React from 'react';
@@ -1251,13 +1385,6 @@ declare module '@layerfi/components/icons/DownloadCloud' {
1251
1385
  const DownloadCloud: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
1252
1386
  export default DownloadCloud;
1253
1387
 
1254
- }
1255
- declare module '@layerfi/components/icons/Link' {
1256
- import * as React from 'react';
1257
- import { IconSvgProps } from '@layerfi/components/icons/types';
1258
- const Link: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1259
- export default Link;
1260
-
1261
1388
  }
1262
1389
  declare module '@layerfi/components/icons/Loader' {
1263
1390
  import * as React from 'react';
@@ -1293,6 +1420,27 @@ declare module '@layerfi/components/icons/Scissors' {
1293
1420
  const Scissors: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1294
1421
  export default Scissors;
1295
1422
 
1423
+ }
1424
+ declare module '@layerfi/components/icons/ScissorsFullOpen' {
1425
+ import * as React from 'react';
1426
+ import { IconSvgProps } from '@layerfi/components/icons/types';
1427
+ const ScissorsFullOpen: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1428
+ export default ScissorsFullOpen;
1429
+
1430
+ }
1431
+ declare module '@layerfi/components/icons/SortArrows' {
1432
+ import * as React from 'react';
1433
+ import { IconSvgProps } from '@layerfi/components/icons/types';
1434
+ const SortArrows: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1435
+ export default SortArrows;
1436
+
1437
+ }
1438
+ declare module '@layerfi/components/icons/Trash' {
1439
+ import * as React from 'react';
1440
+ import { IconSvgProps } from '@layerfi/components/icons/types';
1441
+ const Trash: ({ size, ...props }: IconSvgProps) => React.JSX.Element;
1442
+ export default Trash;
1443
+
1296
1444
  }
1297
1445
  declare module '@layerfi/components/icons/UploadCloud' {
1298
1446
  import * as React from 'react';
@@ -1319,6 +1467,7 @@ declare module '@layerfi/components/index' {
1319
1467
  export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
1320
1468
  export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
1321
1469
  export { Hello } from '@layerfi/components/components/Hello/index';
1470
+ export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
1322
1471
  export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
1323
1472
  export { ProfitAndLossView } from '@layerfi/components/components/ProfitAndLossView/index';
1324
1473
  export { LayerProvider } from '@layerfi/components/providers/LayerProvider/index';
@@ -1567,6 +1716,10 @@ declare module '@layerfi/components/types/chart_of_accounts' {
1567
1716
  description: string;
1568
1717
  };
1569
1718
 
1719
+ }
1720
+ declare module '@layerfi/components/types/general' {
1721
+ export type SortDirection = 'asc' | 'desc';
1722
+
1570
1723
  }
1571
1724
  declare module '@layerfi/components/types/layer_context' {
1572
1725
  import { Category } from '@layerfi/components/types';
@@ -1647,6 +1800,23 @@ declare module '@layerfi/components/types/line_item' {
1647
1800
  display_name: string;
1648
1801
  value: number | undefined;
1649
1802
  line_items?: LineItem[] | null;
1803
+ is_contra?: boolean;
1804
+ }
1805
+ export interface LineBaseItem {
1806
+ name?: string;
1807
+ display_name: string;
1808
+ value: number;
1809
+ type: string;
1810
+ share?: number;
1811
+ hidden?: boolean;
1812
+ }
1813
+
1814
+ }
1815
+ declare module '@layerfi/components/types/linked_accounts' {
1816
+ export interface LinkedAccount {
1817
+ name: string;
1818
+ account: string;
1819
+ amount: number;
1650
1820
  }
1651
1821
 
1652
1822
  }
@@ -1680,6 +1850,7 @@ declare module '@layerfi/components/types' {
1680
1850
  export { Direction, BankTransaction } from '@layerfi/components/types/bank_transactions';
1681
1851
  export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
1682
1852
  export { AccountAlternate, ChartOfAccounts, Account, NewAccount, } from '@layerfi/components/types/chart_of_accounts';
1853
+ export { SortDirection } from '@layerfi/components/types/general';
1683
1854
  export type DateRange<T = Date> = {
1684
1855
  startDate: T;
1685
1856
  endDate: T;
@@ -1706,10 +1877,31 @@ declare module '@layerfi/components/utils/format' {
1706
1877
  * Capitalize first letter of the given text.
1707
1878
  */
1708
1879
  export const capitalizeFirstLetter: (text: string) => string;
1880
+ /**
1881
+ * Convert number into percentage.
1882
+ *
1883
+ * @example
1884
+ * 0.112 -> 11%
1885
+ * 0.09843 -> 9.8%
1886
+ * 0.00123 -> 0.12%
1887
+ */
1888
+ export const formatPercent: (value?: number, options?: Intl.NumberFormatOptions) => string | undefined;
1709
1889
 
1710
1890
  }
1711
1891
  declare module '@layerfi/components/utils/helpers' {
1712
1892
  export const range: (start: number, end: number) => number[];
1893
+ export const debounce: <F extends (...args: Parameters<F>) => ReturnType<F>>(fnc: F, timeout?: number) => (...args: Parameters<F>) => void;
1894
+ export const sleep: (time: number) => Promise<unknown>;
1895
+
1896
+ }
1897
+ declare module '@layerfi/components/utils/profitAndLossUtils' {
1898
+ import { SidebarScope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
1899
+ import { LineBaseItem } from '@layerfi/components/types/line_item';
1900
+ import { ProfitAndLoss } from '@layerfi/components/types/profit_and_loss';
1901
+ export const collectExpensesItems: (data: ProfitAndLoss) => LineBaseItem[];
1902
+ export const collectRevenueItems: (data: ProfitAndLoss) => LineBaseItem[];
1903
+ export const humanizeTitle: (sidebarView: SidebarScope) => "Expenses" | "Revenue" | "Profit & Loss";
1904
+ export const applyShare: (items: LineBaseItem[], total: number) => LineBaseItem[];
1713
1905
 
1714
1906
  }
1715
1907
  declare module '@layerfi/components' {