react-render-hooks 0.0.1

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.
Files changed (98) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/lib/hooks/betting/betSlip/useBetSlipAmount/index.d.ts +2 -0
  3. package/dist/lib/hooks/betting/betSlip/useBetSlipBets/index.d.ts +3 -0
  4. package/dist/lib/hooks/betting/betSlip/useBetSlipControllers/index.d.ts +3 -0
  5. package/dist/lib/hooks/betting/betSlip/useBetSlipEventCounter/index.d.ts +2 -0
  6. package/dist/lib/hooks/betting/betSlip/useBetSlipIsSelectedOdd/index.d.ts +8 -0
  7. package/dist/lib/hooks/betting/betSlip/useBetSlipMaxLimit/index.d.ts +6 -0
  8. package/dist/lib/hooks/betting/betSlip/useBetSlipPlaceBet/index.d.ts +3 -0
  9. package/dist/lib/hooks/betting/betSlip/useBetSlipShortInfo/index.d.ts +5 -0
  10. package/dist/lib/hooks/betting/betSlip/useBetSlipSpecialOdd/index.d.ts +11 -0
  11. package/dist/lib/hooks/betting/categories/useBettingCategoryIds/index.d.ts +10 -0
  12. package/dist/lib/hooks/betting/categories/useGetCategoryInfo/index.d.ts +7 -0
  13. package/dist/lib/hooks/betting/events/useBettingTopEvents/index.d.ts +3 -0
  14. package/dist/lib/hooks/betting/events/useEventDetailsMarketTabs/index.d.ts +9 -0
  15. package/dist/lib/hooks/betting/events/useEventDetailsMarketsByGroupId/index.d.ts +10 -0
  16. package/dist/lib/hooks/betting/events/useEventsByTournamentId/index.d.ts +11 -0
  17. package/dist/lib/hooks/betting/events/useScore/index.d.ts +8 -0
  18. package/dist/lib/hooks/betting/events/useShortEventInfo/index.d.ts +8 -0
  19. package/dist/lib/hooks/betting/lines/useAdditionalLines/index.d.ts +9 -0
  20. package/dist/lib/hooks/betting/lines/useCounterLines/index.d.ts +7 -0
  21. package/dist/lib/hooks/betting/lines/useGetLines/index.d.ts +16 -0
  22. package/dist/lib/hooks/betting/lines/useShortLineInfo/index.d.ts +10 -0
  23. package/dist/lib/hooks/betting/markets/useGetFilterMarketNames/index.d.ts +8 -0
  24. package/dist/lib/hooks/betting/markets/useGetMarketFilters/index.d.ts +8 -0
  25. package/dist/lib/hooks/betting/odd/useOdd/index.d.ts +10 -0
  26. package/dist/lib/hooks/betting/settings/useBettingAvailableStatus/index.d.ts +2 -0
  27. package/dist/lib/hooks/betting/settings/useBettingSettingStatus/index.d.ts +2 -0
  28. package/dist/lib/hooks/betting/sports/useBettingSports/index.d.ts +7 -0
  29. package/dist/lib/hooks/betting/sports/useBettingSportsById/index.d.ts +7 -0
  30. package/dist/lib/hooks/betting/tickets/useHistoryTickets/index.d.ts +7 -0
  31. package/dist/lib/hooks/betting/tickets/useTicketControllers/index.d.ts +2 -0
  32. package/dist/lib/hooks/betting/tickets/useTicketControllers/types.d.ts +11 -0
  33. package/dist/lib/hooks/betting/tickets/useTicketInfo/index.d.ts +9 -0
  34. package/dist/lib/hooks/betting/tickets/useTickets/index.d.ts +21 -0
  35. package/dist/lib/hooks/betting/tournaments/useBettingTopTournaments/index.d.ts +3 -0
  36. package/dist/lib/hooks/betting/tournaments/useBettingTournamentById/index.d.ts +7 -0
  37. package/dist/lib/hooks/betting/tournaments/useBettingTournamentsByCategoryIdOrSportId/index.d.ts +19 -0
  38. package/dist/lib/hooks/casino/useBattles/index.d.ts +4 -0
  39. package/dist/lib/hooks/casino/useCasinoCategories/index.d.ts +7 -0
  40. package/dist/lib/hooks/casino/useCasinoGame/index.d.ts +7 -0
  41. package/dist/lib/hooks/casino/useCasinoGames/index.d.ts +3 -0
  42. package/dist/lib/hooks/casino/useCasinoGames/types.d.ts +11 -0
  43. package/dist/lib/hooks/casino/useCasinoHomeCategories/index.d.ts +3 -0
  44. package/dist/lib/hooks/casino/useCasinoHomeCategories/types.d.ts +4 -0
  45. package/dist/lib/hooks/casino/useCasinoSubCategories/index.d.ts +7 -0
  46. package/dist/lib/hooks/casino/useCategoryInfoByCategoryId/index.d.ts +8 -0
  47. package/dist/lib/hooks/casino/useGetProviderGames/index.d.ts +11 -0
  48. package/dist/lib/hooks/casino/useHasDemoModeGame/index.d.ts +7 -0
  49. package/dist/lib/hooks/casino/useJackpots/index.d.ts +2 -0
  50. package/dist/lib/hooks/casino/useLastWinner/index.d.ts +8 -0
  51. package/dist/lib/hooks/casino/useProviders/index.d.ts +6 -0
  52. package/dist/lib/hooks/profile/avatars/useUserAvatar/index.d.ts +7 -0
  53. package/dist/lib/hooks/profile/avatars/useUserAvatarControllers/index.d.ts +16 -0
  54. package/dist/lib/hooks/profile/avatars/useUserAvatars/index.d.ts +6 -0
  55. package/dist/lib/hooks/profile/balance/useBalance/index.d.ts +2 -0
  56. package/dist/lib/hooks/profile/balance/useBonusCoins/index.d.ts +1 -0
  57. package/dist/lib/hooks/profile/bonuses/useAnyActiveBonuses/index.d.ts +1 -0
  58. package/dist/lib/hooks/profile/bonuses/useBonuses/index.d.ts +6 -0
  59. package/dist/lib/hooks/profile/depOdd/index.d.ts +1 -0
  60. package/dist/lib/hooks/profile/favorites/useFavoriteController/index.d.ts +9 -0
  61. package/dist/lib/hooks/profile/favorites/useFavoriteGames/index.d.ts +4 -0
  62. package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/index.d.ts +6 -0
  63. package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/types.d.ts +5 -0
  64. package/dist/lib/hooks/profile/kGames/bonusWheel/useBonusWheelController/index.d.ts +8 -0
  65. package/dist/lib/hooks/profile/kGames/dailyTasks/useActiveDailyTask/index.d.ts +2 -0
  66. package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTaskControllers/index.d.ts +3 -0
  67. package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTasks/index.d.ts +2 -0
  68. package/dist/lib/hooks/profile/operations/useCashBonus/index.d.ts +8 -0
  69. package/dist/lib/hooks/profile/operations/useGetPaymentsOperations/index.d.ts +6 -0
  70. package/dist/lib/hooks/profile/operations/useGetVipProgress/index.d.ts +10 -0
  71. package/dist/lib/hooks/profile/operations/useHistoryTransactions/index.d.ts +8 -0
  72. package/dist/lib/hooks/profile/operations/useMonthlyBonus/index.d.ts +2 -0
  73. package/dist/lib/hooks/profile/operations/useRakeBack/index.d.ts +2 -0
  74. package/dist/lib/hooks/profile/operations/useTournamentBonus/index.d.ts +6 -0
  75. package/dist/lib/hooks/profile/operations/useWagerBonuses/index.d.ts +1 -0
  76. package/dist/lib/hooks/profile/operations/useWeeklyBonus/index.d.ts +2 -0
  77. package/dist/lib/hooks/profile/payments/usePayments/adapters.d.ts +5 -0
  78. package/dist/lib/hooks/profile/payments/usePayments/index.d.ts +8 -0
  79. package/dist/lib/hooks/profile/payments/usePayments/types.d.ts +8 -0
  80. package/dist/lib/hooks/profile/promoCode/usePromoCodeControllers/index.d.ts +3 -0
  81. package/dist/lib/hooks/profile/referral/useReferralBalance/index.d.ts +6 -0
  82. package/dist/lib/hooks/profile/referral/useReferralClients/index.d.ts +2 -0
  83. package/dist/lib/hooks/profile/referral/useReferralControllers/index.d.ts +3 -0
  84. package/dist/lib/hooks/profile/referral/useReferralLink/index.d.ts +5 -0
  85. package/dist/lib/hooks/profile/useAuth/index.d.ts +2 -0
  86. package/dist/lib/hooks/profile/useCountryInfo/index.d.ts +2 -0
  87. package/dist/lib/hooks/profile/useCurrency/index.d.ts +2 -0
  88. package/dist/lib/hooks/profile/useUserInfo/index.d.ts +2 -0
  89. package/dist/lib/hooks/transport/useInitTransport/index.d.ts +12 -0
  90. package/dist/lib/hooks/transport/useTransportControllers/index.d.ts +15 -0
  91. package/dist/lib/hooks/transport/useUid/index.d.ts +2 -0
  92. package/dist/lib/hooks/transport/useUpdateSettings/index.d.ts +1 -0
  93. package/dist/lib/hooks/types.d.ts +15 -0
  94. package/dist/lib/index.d.ts +112 -0
  95. package/dist/lib/services/transport.d.ts +34 -0
  96. package/dist/lib/services/types.d.ts +12 -0
  97. package/dist/lib/utils/shared.d.ts +2 -0
  98. package/package.json +55 -0
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useBetSlipAmount: ({ isConnectedApp, }: Omit<BaseHookType, 'betUid'>) => number;
@@ -0,0 +1,3 @@
1
+ import { Bet } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ export declare const useBetSlipBets: ({ isConnectedApp, betUid }: BaseHookType) => Bet[];
@@ -0,0 +1,3 @@
1
+ import { ReturnBetSlipControllerTypes } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ export declare const useBetSlipControllers: ({ isConnectedApp, }: BaseHookType) => ReturnBetSlipControllerTypes;
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useBetSlipEventCounter: ({ isConnectedApp, }: BaseHookType) => number;
@@ -0,0 +1,8 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ lineUid: string;
4
+ eventUid: string;
5
+ outcomeId: number;
6
+ };
7
+ export declare const useBetSlipIsSelectedOdd: (props: Props) => boolean;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ betUid: string;
4
+ };
5
+ export declare const useBetSlipMaxLimit: (props: Props) => number;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { EPlaceBetStatus } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ export declare const useBetSlipPlaceBet: ({ isConnectedApp }: BaseHookType) => EPlaceBetStatus;
@@ -0,0 +1,5 @@
1
+ import { ReturnSubscribeBetSlipShortInfoProps } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType;
4
+ export declare const useBetSlipShortInfo: (props: Props) => ReturnSubscribeBetSlipShortInfoProps;
5
+ export {};
@@ -0,0 +1,11 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ systemOdd: boolean;
4
+ expressOdd: boolean;
5
+ };
6
+ type Response = {
7
+ system?: number;
8
+ express?: number;
9
+ };
10
+ export declare const useBetSlipSpecialOdd: (props: Props) => Response;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ isPrematch: boolean;
4
+ sportId: number;
5
+ time: number | null;
6
+ };
7
+ export declare const useBettingCategoryIds: (props: Props) => {
8
+ id: number;
9
+ }[];
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Category } from 'react-memory-optimization/dist/lib/store/betting/entities/categories/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ categoryId: number;
5
+ };
6
+ export declare const useGetCategoryInfo: ({ categoryId, isConnectedApp, }: Props) => Category | null;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ReturnTopEventType } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ export declare const useBettingTopEvents: ({ isConnectedApp, }: BaseHookType) => ReturnTopEventType[];
@@ -0,0 +1,9 @@
1
+ import { ReturnEventDetailsMarketTabs } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ eventUid: string;
5
+ isPrematch: boolean;
6
+ sportId: number;
7
+ };
8
+ export declare const useEventDetailsMarketTabs: ({ isPrematch, eventUid, sportId, isConnectedApp, }: Props) => ReturnEventDetailsMarketTabs[];
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReturnEventDetailsMarketsByGroupIdProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ eventUid: string;
5
+ isPrematch: boolean;
6
+ groupId: number;
7
+ sportId: number;
8
+ };
9
+ export declare const useEventDetailsMarketsByGroupId: (props: Props) => ReturnEventDetailsMarketsByGroupIdProps[];
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { PrematchShortEventView } from 'react-memory-optimization/dist/lib/store/betting/entities/events/prematch/types';
2
+ import { LiveEventsShortEventView } from 'react-memory-optimization/dist/lib/store/betting/entities/events/live/types';
3
+ import { BaseHookType } from 'hooks/types';
4
+ type Props = BaseHookType & {
5
+ isPrematch: boolean;
6
+ tournamentId: number;
7
+ time: number | null;
8
+ };
9
+ type UseEventsByTournamentIdReturnType<T extends boolean> = T extends true ? PrematchShortEventView[] : LiveEventsShortEventView[];
10
+ export declare const useEventsByTournamentId: (props: Props) => UseEventsByTournamentIdReturnType<Props['isPrematch']>;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ScoreReturnTypes } from 'react-memory-optimization/dist/lib/store/betting/entities/events/live/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ eventUid: string;
5
+ sportId: number;
6
+ };
7
+ export declare const useScore: ({ eventUid, sportId, isConnectedApp }: Props) => ScoreReturnTypes;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReturnShortEventInfoProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ isPrematch: boolean;
5
+ eventUid: string;
6
+ };
7
+ export declare const useShortEventInfo: (props: Props) => ReturnShortEventInfoProps;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ import { AdditionalLines } from 'react-memory-optimization/dist/lib/store/betting/services/types';
3
+ type Props = BaseHookType & {
4
+ comboMarketId?: number;
5
+ eventUid: string;
6
+ isPrematch: boolean;
7
+ };
8
+ export declare const useAdditionalLines: (props: Props) => AdditionalLines[];
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ eventUid: string;
4
+ isPrematch: boolean;
5
+ };
6
+ export declare const useCounterLines: (props: Props) => number;
7
+ export {};
@@ -0,0 +1,16 @@
1
+ import { OddResponse } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ eventUid: string;
5
+ marketId?: number;
6
+ isComboMarket?: boolean;
7
+ isPrematch: boolean;
8
+ } & ({
9
+ lineUid: string;
10
+ marginId?: number;
11
+ } | {
12
+ marketId: number;
13
+ lineUid?: string;
14
+ });
15
+ export declare const useGetLines: (props: Props) => OddResponse[];
16
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReturnSubscribeLineEntitiesProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ lineUid: string;
5
+ eventUid: string;
6
+ outcomeId: number;
7
+ isPrematch: boolean;
8
+ };
9
+ export declare const useShortLineInfo: (props: Props) => ReturnSubscribeLineEntitiesProps;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ marketId: number;
4
+ };
5
+ export declare const useGetFilterMarketNames: (props: Props) => {
6
+ name: string;
7
+ }[];
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ import { ComboMarket } from 'react-memory-optimization/dist/lib/binary/types';
3
+ type Props = BaseHookType & {
4
+ isPrematch: boolean;
5
+ sportId: number;
6
+ };
7
+ export declare const useGetMarketFilters: (props: Props) => ComboMarket[];
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { OddSubscriberResponse } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ eventUid: string;
5
+ outcomeId: number;
6
+ lineUid: string;
7
+ isPrematch: boolean;
8
+ };
9
+ export declare const useOdd: (props: Props) => OddSubscriberResponse;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useBettingAvailableStatus: ({ isConnectedApp }: BaseHookType) => boolean;
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useBettingSettingStatus: ({ isConnectedApp }: BaseHookType) => boolean;
@@ -0,0 +1,7 @@
1
+ import { Sport } from 'react-memory-optimization/dist/lib/store/betting/entities/sports/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ isPrematch: boolean;
5
+ };
6
+ export declare const useBettingSports: ({ isPrematch, isConnectedApp }: Props) => Sport[];
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Sport } from 'react-memory-optimization/dist/lib/store/betting/entities/sports/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ sportId: number;
5
+ };
6
+ export declare const useBettingSportsById: ({ sportId, isConnectedApp }: Props) => Sport;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
3
+ type Props = BaseHookType & {
4
+ range: [number, number];
5
+ };
6
+ export declare const useHistoryTickets: (props: Props) => Ticket[];
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReturnTicketsControllerTypes, UseTicketsControllerProps } from './types';
2
+ export declare const useTicketControllers: ({ isConnectedApp, ticketId, }: UseTicketsControllerProps) => ReturnTicketsControllerTypes;
@@ -0,0 +1,11 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export type UseTicketsControllerProps = BaseHookType & {
3
+ ticketId: number;
4
+ };
5
+ export type CashOutProps = {
6
+ outputStake: number;
7
+ remainingStake: number;
8
+ };
9
+ export type ReturnTicketsControllerTypes = {
10
+ ticketCashOut: (props: CashOutProps) => void;
11
+ };
@@ -0,0 +1,9 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
3
+ type Props = BaseHookType & {
4
+ ticketId: number;
5
+ };
6
+ export declare const useTicketInfo: (props: Props) => Ticket & {
7
+ cashOutInfo: number | null;
8
+ };
9
+ export {};
@@ -0,0 +1,21 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
3
+ type Props = BaseHookType & ({
4
+ isAll?: boolean;
5
+ isCashOut?: boolean;
6
+ isLive?: boolean;
7
+ } & ({
8
+ isAll: true;
9
+ isCashOut?: false;
10
+ isLive?: false;
11
+ } | {
12
+ isCashOut: true;
13
+ isAll?: false;
14
+ isLive?: false;
15
+ } | {
16
+ isCashOut?: false;
17
+ isAll?: false;
18
+ isLive: true;
19
+ }));
20
+ export declare const useTickets: (props: Props) => Ticket[];
21
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Tournament } from 'react-memory-optimization/dist/lib/store/betting/entities/tournaments/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ export declare const useBettingTopTournaments: ({ isConnectedApp }: BaseHookType) => Tournament[];
@@ -0,0 +1,7 @@
1
+ import { Tournament } from 'react-memory-optimization/dist/lib/store/betting/entities/tournaments/types';
2
+ import { BaseHookType } from 'hooks/types';
3
+ type Props = BaseHookType & {
4
+ tournamentId: number;
5
+ };
6
+ export declare const useBettingTournamentById: ({ tournamentId, isConnectedApp, }: Props) => Tournament | null;
7
+ export {};
@@ -0,0 +1,19 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ type Props = BaseHookType & {
3
+ isPrematch: boolean;
4
+ categoryId?: number;
5
+ sportId?: number;
6
+ time: number | null;
7
+ } & ({
8
+ sportId: number;
9
+ categoryId?: undefined;
10
+ } | {
11
+ sportId?: undefined;
12
+ categoryId: number;
13
+ });
14
+ export type ResponseTournamentInfo = {
15
+ id: number;
16
+ categoryId: number;
17
+ };
18
+ export declare const useBettingTournamentsByCategoryIdOrSportId: (props: Props) => ResponseTournamentInfo[];
19
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ActiveTournaments, BattleDetails, HistoryTournaments, TournamentSubscribeProps } from 'react-memory-optimization/dist/lib/store/casino/entities/casinoTournaments/types';
2
+ type Props = TournamentSubscribeProps;
3
+ export declare const useBattles: (props: Props) => HistoryTournaments | ActiveTournaments | BattleDetails;
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
2
+ type Props = {
3
+ isMobile: boolean;
4
+ isWager?: boolean;
5
+ };
6
+ export declare const useCasinoCategories: ({ isMobile, isWager }: Props) => CasinoCategory[];
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AdaptedGame } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
2
+ export type Props = {
3
+ gameId: number;
4
+ isMobile: boolean;
5
+ force?: boolean;
6
+ };
7
+ export declare const useCasinoGame: (props: Props) => AdaptedGame | null;
@@ -0,0 +1,3 @@
1
+ import { Props } from './types';
2
+ import { CasinoGamesResponse } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
3
+ export declare const useCasinoGames: (props: Props) => CasinoGamesResponse;
@@ -0,0 +1,11 @@
1
+ import { AdaptedGame } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
2
+ export type Props = {
3
+ categoryId: null | number;
4
+ subCategoryId: null | number;
5
+ page: number;
6
+ limit?: number;
7
+ search: string;
8
+ providerId: number | null;
9
+ isMobile: boolean;
10
+ sortFn?: (a: AdaptedGame, b: AdaptedGame) => number;
11
+ };
@@ -0,0 +1,3 @@
1
+ import { ResponseHomePageInfo } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
2
+ import { CasinoHomeProps } from './types';
3
+ export declare const useCasinoHomeCategories: ({ isMobile }: CasinoHomeProps) => ResponseHomePageInfo;
@@ -0,0 +1,4 @@
1
+ export type CasinoHomeProps = {
2
+ isConnectedApp: boolean;
3
+ isMobile: boolean;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { CasinoSubCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
2
+ type Props = {
3
+ categoryId: number | null;
4
+ isMobile: boolean;
5
+ };
6
+ export declare const useCasinoSubCategories: (props: Props) => CasinoSubCategory[];
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
2
+ type Props = {
3
+ isConnectedApp: boolean;
4
+ isMobile: boolean;
5
+ categoryId: number;
6
+ };
7
+ export declare const useCategoryInfoByCategoryId: (props: Props) => CasinoCategory[];
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { CasinoGamesResponse } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
2
+ type Props = {
3
+ id: number;
4
+ page: number;
5
+ limit: number;
6
+ isMobile: boolean;
7
+ search?: string;
8
+ excludeGameId?: number;
9
+ };
10
+ export declare const useGetProviderGames: (props: Props) => CasinoGamesResponse;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ gameId: number;
3
+ isConnectedApp: boolean;
4
+ isMobile: boolean;
5
+ };
6
+ export declare const useHasDemoModeGame: (props: Props) => boolean;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SubscribeHookType } from 'react-memory-optimization/dist/lib/store/casino/entities/jackpots/types';
2
+ export declare const useJackpots: (props: SubscribeHookType) => any[];
@@ -0,0 +1,8 @@
1
+ import { ReturnSubscribeCasinoLastWinnersProps } from 'react-memory-optimization/dist/lib/store/casino/entities/lastWinners/types';
2
+ type Props = {
3
+ isMobile: boolean;
4
+ limit?: number;
5
+ type?: 'vipBet' | 'base';
6
+ };
7
+ export declare const useLastWinner: (props: Props) => ReturnSubscribeCasinoLastWinnersProps[];
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Provider, ObservableProviderGameCountSetting, ObservableProviderInfoSetting, ObservableProvidersSetting } from 'react-memory-optimization/dist/lib/store/casino/entities/providers/types';
2
+ type Props = {
3
+ isMobile: boolean;
4
+ } & (ObservableProvidersSetting | ObservableProviderInfoSetting | ObservableProviderGameCountSetting);
5
+ export declare const useProviders: (props: Props) => Provider[] | null;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ isConnectedApp: boolean;
3
+ };
4
+ export declare const useUserAvatar: ({ isConnectedApp, }: Props) => null | {
5
+ id: number;
6
+ };
7
+ export {};
@@ -0,0 +1,16 @@
1
+ import { AvatarType } from 'react-memory-optimization/dist/lib/store/user/entities/avatar/types';
2
+ type Props = {
3
+ isConnectedApp: boolean;
4
+ };
5
+ export declare const useUserAvatarControllers: ({ isConnectedApp }: Props) => {
6
+ handleSaveAvatar: (id: AvatarType | null) => void;
7
+ handleBuyAvatar: (info: {
8
+ id: number;
9
+ price: number;
10
+ }) => void;
11
+ handleBuyHero: (info: {
12
+ id: number;
13
+ price: number;
14
+ }) => void;
15
+ };
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import { UserInfo } from 'react-memory-optimization/dist/lib/store/user/types';
2
+ type Props = {
3
+ isConnectedApp: boolean;
4
+ };
5
+ export declare const useUserAvatars: ({ isConnectedApp }: Props) => UserInfo[];
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { BalanceInfo } from 'react-memory-optimization/dist/lib/store/user/entities/balance/types';
2
+ export declare const useBalance: () => BalanceInfo | null;
@@ -0,0 +1 @@
1
+ export declare const useBonusCoins: () => number | null;
@@ -0,0 +1 @@
1
+ export declare const useAnyActiveBonuses: () => boolean;
@@ -0,0 +1,6 @@
1
+ import { BonusesResponse } from 'react-memory-optimization/dist/lib/store/operations/types';
2
+ type Props = {
3
+ isActive?: boolean;
4
+ };
5
+ export declare const useBonuses: (props: Props) => BonusesResponse;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useUserMinOdd: () => number;
@@ -0,0 +1,9 @@
1
+ import { PrepareFavoriteEntitiesForSavingProps } from 'react-memory-optimization/dist/lib/store/user/entities/favorites/types';
2
+ type Props = {
3
+ isConnectedApp: boolean;
4
+ };
5
+ export type ReturnType = {
6
+ updateFavorites?: (d: PrepareFavoriteEntitiesForSavingProps) => void;
7
+ };
8
+ export declare const useFavoriteController: ({ isConnectedApp, }: Props) => ReturnType;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { AdaptedGame } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
2
+ export declare const useFavoriteGames: (props: {
3
+ isMobile: boolean;
4
+ }) => AdaptedGame[];
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ gameId: number;
3
+ isMobile: boolean;
4
+ };
5
+ export declare const useIsFavoriteGame: (props: Props) => boolean;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import { EGettingInfoStatus } from 'hooks/types';
2
+ export type ReturnTypeIsFavorite = {
3
+ status: EGettingInfoStatus;
4
+ data?: boolean;
5
+ };
@@ -0,0 +1,8 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useBonusWheelController: ({ isConnectedApp }: BaseHookType) => {
3
+ getWheelResult: () => {
4
+ value: number;
5
+ result: number;
6
+ };
7
+ getWheelContent: () => number[];
8
+ };
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useDailyActiveTask: ({ isConnectedApp }: BaseHookType) => any;
@@ -0,0 +1,3 @@
1
+ export declare const useDailyTaskControllers: (isConnectedApp: boolean) => {
2
+ setActiveDailyTask: (id: string) => void;
3
+ };
@@ -0,0 +1,2 @@
1
+ import { BaseHookType } from 'hooks/types';
2
+ export declare const useDailyTasks: ({ isConnectedApp }: BaseHookType) => any[];
@@ -0,0 +1,8 @@
1
+ import { CashBonusChannelType } from 'react-memory-optimization/dist/lib/store/operations/entities/cashBonuses/types';
2
+ import { CashBonuses } from 'react-memory-optimization/dist/lib/store/operations/entities/cashBonuses';
3
+ type ReturnTypeErgBonus = CashBonuses[];
4
+ type Props = {
5
+ channelType?: CashBonusChannelType;
6
+ };
7
+ export declare const useCashBonus: (props: Props) => ReturnTypeErgBonus | null;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { PaymentOperation } from 'react-memory-optimization/dist/lib/store/operations/types';
2
+ type Props = {
3
+ range: [number, number];
4
+ };
5
+ export declare const useGetPaymentsOperations: ({ range, }: Props) => PaymentOperation[];
6
+ export {};
@@ -0,0 +1,10 @@
1
+ type ReturnTypeLevelProps = {
2
+ current: number;
3
+ next: number;
4
+ };
5
+ export type ReturnTypeProps = {
6
+ level: ReturnTypeLevelProps;
7
+ percent: number;
8
+ };
9
+ export declare const useGetVipProgress: () => ReturnTypeProps;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { MixerTransactionResponse, TransactionFilterType } from 'react-memory-optimization/dist/lib/store/operations/types';
2
+ type Props = {
3
+ range: [number, number];
4
+ types: TransactionFilterType[];
5
+ withGameInfo?: boolean;
6
+ };
7
+ export declare const useHistoryTransactions: (props: Props) => MixerTransactionResponse;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ReturnTypeMonthlyBonus } from 'react-memory-optimization/dist/lib/store/operations/entities/vipClub/types';
2
+ export declare const useMonthlyBonus: () => ReturnTypeMonthlyBonus | null;