@serhii.olishevskyi/docs 0.0.0-stage → 1.0.0
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.mts +222 -0
- package/dist/index.d.ts +222 -0
- package/dist/index.js +4146 -0
- package/dist/index.mjs +4123 -0
- package/package.json +37 -6
- package/README.md +0 -3
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import { TextFieldProps, Theme } from '@mui/material';
|
|
4
|
+
import { SupabaseClient } from '@supabase/supabase-js';
|
|
5
|
+
|
|
6
|
+
type TextfieldComponentProps = TextFieldProps & {
|
|
7
|
+
copyTooltip?: string;
|
|
8
|
+
copiedTooltip?: string;
|
|
9
|
+
clearTooltip?: string;
|
|
10
|
+
lockTooltip?: string;
|
|
11
|
+
showLock?: boolean;
|
|
12
|
+
placeholderKey?: string;
|
|
13
|
+
disableClearButton?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type NumberInputComponentProps = Omit<TextfieldComponentProps, 'onChange' | 'type'> & {
|
|
17
|
+
value: number | string | null | undefined;
|
|
18
|
+
onChange?: (value: number | null, stringValue: string) => void;
|
|
19
|
+
allowNegative?: boolean;
|
|
20
|
+
allowFractional?: boolean;
|
|
21
|
+
decimalPlaces?: number;
|
|
22
|
+
minValue?: number;
|
|
23
|
+
maxValue?: number;
|
|
24
|
+
step?: number;
|
|
25
|
+
showStepper?: boolean;
|
|
26
|
+
useGrouping?: boolean;
|
|
27
|
+
highlightNegative?: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
declare const CardForm: {
|
|
31
|
+
Inputs: {
|
|
32
|
+
TextField: React.FC<TextfieldComponentProps>;
|
|
33
|
+
NumberField: React.FC<NumberInputComponentProps>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface SupabaseConfig {
|
|
38
|
+
url: string;
|
|
39
|
+
anonKey: string;
|
|
40
|
+
}
|
|
41
|
+
interface SupabaseProviderProps {
|
|
42
|
+
children: React__default.ReactNode;
|
|
43
|
+
/** Вы можете передать готовый клиент Supabase... */
|
|
44
|
+
client?: SupabaseClient;
|
|
45
|
+
/** ...или передать конфиг (url и anonKey), и библиотека создаст клиент сама */
|
|
46
|
+
config?: SupabaseConfig;
|
|
47
|
+
}
|
|
48
|
+
declare const SupabaseProvider: React__default.FC<SupabaseProviderProps>;
|
|
49
|
+
/** Хук для доступа к Supabase из любого компонента */
|
|
50
|
+
declare const useSupabase: () => SupabaseClient;
|
|
51
|
+
|
|
52
|
+
interface TranslateProviderProps {
|
|
53
|
+
namespace: string;
|
|
54
|
+
children: React__default.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
declare const TranslateProvider: React__default.FC<TranslateProviderProps>;
|
|
57
|
+
declare const useTranslationNamespace: (overrideNamespace?: string) => string;
|
|
58
|
+
|
|
59
|
+
interface TranslateTextProps {
|
|
60
|
+
children: string;
|
|
61
|
+
values?: Record<string, any>;
|
|
62
|
+
}
|
|
63
|
+
declare const TranslateText: React__default.FC<TranslateTextProps>;
|
|
64
|
+
|
|
65
|
+
interface TranslationContextType {
|
|
66
|
+
isTranslationMode: boolean;
|
|
67
|
+
setIsTranslationMode: (val: boolean) => void;
|
|
68
|
+
canEdit: boolean;
|
|
69
|
+
isLoadingPermissions: boolean;
|
|
70
|
+
updateTranslation: (key: string, namespace: string, newValue: string) => Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
declare const TranslationEditProvider: React__default.FC<{
|
|
73
|
+
children: React__default.ReactNode;
|
|
74
|
+
}>;
|
|
75
|
+
declare const useTranslationEdit: () => TranslationContextType;
|
|
76
|
+
|
|
77
|
+
interface Language {
|
|
78
|
+
code: string;
|
|
79
|
+
name: string;
|
|
80
|
+
svg_flag: string | null;
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
created_at?: string;
|
|
83
|
+
}
|
|
84
|
+
interface LocalizationContextType {
|
|
85
|
+
currentLang: string;
|
|
86
|
+
languages: Language[];
|
|
87
|
+
isLoadingLangs: boolean;
|
|
88
|
+
languagesError: string | null;
|
|
89
|
+
changeLanguage: (lang: string) => Promise<void>;
|
|
90
|
+
getDateFormat: () => string;
|
|
91
|
+
getTimeFormat: () => string;
|
|
92
|
+
getDateTimeFormat: () => string;
|
|
93
|
+
formatDateTime: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
94
|
+
formatDate: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
95
|
+
formatTime: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
96
|
+
formatRelativeTime: (date: string | Date | number | null | undefined, withoutSuffix?: boolean) => string;
|
|
97
|
+
}
|
|
98
|
+
declare const LocalizationProvider: React__default.FC<{
|
|
99
|
+
children: ReactNode;
|
|
100
|
+
}>;
|
|
101
|
+
declare const useLocalization: () => LocalizationContextType;
|
|
102
|
+
|
|
103
|
+
interface DisplayState {
|
|
104
|
+
isMobile: boolean;
|
|
105
|
+
isTablet: boolean;
|
|
106
|
+
isDesktop: boolean;
|
|
107
|
+
isWideDesktop: boolean;
|
|
108
|
+
isSuperWideDesktop: boolean;
|
|
109
|
+
}
|
|
110
|
+
type ThemeMode = 'light' | 'dark';
|
|
111
|
+
interface ThemeColors {
|
|
112
|
+
primary: string;
|
|
113
|
+
secondary: string;
|
|
114
|
+
backgroundDefault: string;
|
|
115
|
+
backgroundPaper: string;
|
|
116
|
+
textPrimary: string;
|
|
117
|
+
textSecondary: string;
|
|
118
|
+
success: string;
|
|
119
|
+
error: string;
|
|
120
|
+
warning: string;
|
|
121
|
+
info: string;
|
|
122
|
+
}
|
|
123
|
+
interface TypographyConfig {
|
|
124
|
+
fontFamily: string;
|
|
125
|
+
fontSize: number;
|
|
126
|
+
fontWeightLight: number;
|
|
127
|
+
fontWeightRegular: number;
|
|
128
|
+
fontWeightMedium: number;
|
|
129
|
+
fontWeightBold: number;
|
|
130
|
+
}
|
|
131
|
+
interface ThemeConfig {
|
|
132
|
+
id?: string;
|
|
133
|
+
name: string;
|
|
134
|
+
mode: ThemeMode;
|
|
135
|
+
borderRadius: number;
|
|
136
|
+
colors: {
|
|
137
|
+
light: ThemeColors;
|
|
138
|
+
dark: ThemeColors;
|
|
139
|
+
};
|
|
140
|
+
typography: TypographyConfig;
|
|
141
|
+
updatedAt?: string;
|
|
142
|
+
}
|
|
143
|
+
interface ThemeContextType {
|
|
144
|
+
mode: ThemeMode;
|
|
145
|
+
toggleTheme: () => void;
|
|
146
|
+
setMode: (mode: ThemeMode) => void;
|
|
147
|
+
theme: Theme;
|
|
148
|
+
themeConfig: ThemeConfig;
|
|
149
|
+
setThemeConfig: React__default.Dispatch<React__default.SetStateAction<ThemeConfig>>;
|
|
150
|
+
displayState: DisplayState;
|
|
151
|
+
}
|
|
152
|
+
declare const ThemeProvider: React__default.FC<{
|
|
153
|
+
children: React__default.ReactNode;
|
|
154
|
+
}>;
|
|
155
|
+
declare const useAppTheme: () => ThemeContextType;
|
|
156
|
+
|
|
157
|
+
interface BreadcrumbContextType {
|
|
158
|
+
breadcrumbTitles: Record<string, string>;
|
|
159
|
+
setBreadcrumbTitle: (path: string, title: string) => void;
|
|
160
|
+
}
|
|
161
|
+
declare const BreadcrumbProvider: React__default.FC<{
|
|
162
|
+
children: React__default.ReactNode;
|
|
163
|
+
}>;
|
|
164
|
+
declare const useBreadcrumb: () => BreadcrumbContextType;
|
|
165
|
+
|
|
166
|
+
type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
167
|
+
interface ToastContextType {
|
|
168
|
+
showToast: (text: React__default.ReactNode, type?: ToastType) => void;
|
|
169
|
+
hideToast: () => void;
|
|
170
|
+
}
|
|
171
|
+
declare const ToastProvider: React__default.FC<{
|
|
172
|
+
children: React__default.ReactNode;
|
|
173
|
+
}>;
|
|
174
|
+
declare const useToast: () => ToastContextType;
|
|
175
|
+
|
|
176
|
+
type DialogSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
177
|
+
type ConfirmResult = 'yes' | 'no' | 'cancel';
|
|
178
|
+
interface ConfirmOptions {
|
|
179
|
+
title?: ReactNode;
|
|
180
|
+
message: ReactNode;
|
|
181
|
+
type?: DialogSeverity;
|
|
182
|
+
showNoButton?: boolean;
|
|
183
|
+
showCancelButton?: boolean;
|
|
184
|
+
confirmText?: ReactNode;
|
|
185
|
+
noText?: ReactNode;
|
|
186
|
+
cancelText?: ReactNode;
|
|
187
|
+
confirmColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success';
|
|
188
|
+
}
|
|
189
|
+
interface ConfirmationProviderProps {
|
|
190
|
+
children: ReactNode;
|
|
191
|
+
}
|
|
192
|
+
declare const ConfirmationProvider: React__default.FC<ConfirmationProviderProps>;
|
|
193
|
+
declare const useConfirmation: () => ((options: ConfirmOptions) => Promise<ConfirmResult>);
|
|
194
|
+
|
|
195
|
+
type AIProviderType = 'gemini' | 'openai';
|
|
196
|
+
interface AIGenerateOptions {
|
|
197
|
+
prompt: string;
|
|
198
|
+
systemInstruction?: string;
|
|
199
|
+
jsonMode?: boolean;
|
|
200
|
+
temperature?: number;
|
|
201
|
+
}
|
|
202
|
+
interface AIConfig {
|
|
203
|
+
apiKey?: string;
|
|
204
|
+
provider?: AIProviderType;
|
|
205
|
+
modelName?: string;
|
|
206
|
+
}
|
|
207
|
+
interface AIContextType {
|
|
208
|
+
apiKey?: string;
|
|
209
|
+
provider: AIProviderType;
|
|
210
|
+
modelName: string;
|
|
211
|
+
/** Универсальный метод генерации (текст или JSON) */
|
|
212
|
+
generate: <T = string>(options: AIGenerateOptions) => Promise<T | null>;
|
|
213
|
+
}
|
|
214
|
+
interface AIProviderProps {
|
|
215
|
+
children: React__default.ReactNode;
|
|
216
|
+
config?: AIConfig;
|
|
217
|
+
apiKey?: string;
|
|
218
|
+
}
|
|
219
|
+
declare const AIProvider: React__default.FC<AIProviderProps>;
|
|
220
|
+
declare const useAI: () => AIContextType;
|
|
221
|
+
|
|
222
|
+
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, BreadcrumbProvider, CardForm, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, type DialogSeverity, type DisplayState, type Language, LocalizationProvider, type NumberInputComponentProps, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, type TextfieldComponentProps, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslateProvider, TranslateText, TranslationEditProvider, type TypographyConfig, useAI, useAppTheme, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import { TextFieldProps, Theme } from '@mui/material';
|
|
4
|
+
import { SupabaseClient } from '@supabase/supabase-js';
|
|
5
|
+
|
|
6
|
+
type TextfieldComponentProps = TextFieldProps & {
|
|
7
|
+
copyTooltip?: string;
|
|
8
|
+
copiedTooltip?: string;
|
|
9
|
+
clearTooltip?: string;
|
|
10
|
+
lockTooltip?: string;
|
|
11
|
+
showLock?: boolean;
|
|
12
|
+
placeholderKey?: string;
|
|
13
|
+
disableClearButton?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type NumberInputComponentProps = Omit<TextfieldComponentProps, 'onChange' | 'type'> & {
|
|
17
|
+
value: number | string | null | undefined;
|
|
18
|
+
onChange?: (value: number | null, stringValue: string) => void;
|
|
19
|
+
allowNegative?: boolean;
|
|
20
|
+
allowFractional?: boolean;
|
|
21
|
+
decimalPlaces?: number;
|
|
22
|
+
minValue?: number;
|
|
23
|
+
maxValue?: number;
|
|
24
|
+
step?: number;
|
|
25
|
+
showStepper?: boolean;
|
|
26
|
+
useGrouping?: boolean;
|
|
27
|
+
highlightNegative?: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
declare const CardForm: {
|
|
31
|
+
Inputs: {
|
|
32
|
+
TextField: React.FC<TextfieldComponentProps>;
|
|
33
|
+
NumberField: React.FC<NumberInputComponentProps>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface SupabaseConfig {
|
|
38
|
+
url: string;
|
|
39
|
+
anonKey: string;
|
|
40
|
+
}
|
|
41
|
+
interface SupabaseProviderProps {
|
|
42
|
+
children: React__default.ReactNode;
|
|
43
|
+
/** Вы можете передать готовый клиент Supabase... */
|
|
44
|
+
client?: SupabaseClient;
|
|
45
|
+
/** ...или передать конфиг (url и anonKey), и библиотека создаст клиент сама */
|
|
46
|
+
config?: SupabaseConfig;
|
|
47
|
+
}
|
|
48
|
+
declare const SupabaseProvider: React__default.FC<SupabaseProviderProps>;
|
|
49
|
+
/** Хук для доступа к Supabase из любого компонента */
|
|
50
|
+
declare const useSupabase: () => SupabaseClient;
|
|
51
|
+
|
|
52
|
+
interface TranslateProviderProps {
|
|
53
|
+
namespace: string;
|
|
54
|
+
children: React__default.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
declare const TranslateProvider: React__default.FC<TranslateProviderProps>;
|
|
57
|
+
declare const useTranslationNamespace: (overrideNamespace?: string) => string;
|
|
58
|
+
|
|
59
|
+
interface TranslateTextProps {
|
|
60
|
+
children: string;
|
|
61
|
+
values?: Record<string, any>;
|
|
62
|
+
}
|
|
63
|
+
declare const TranslateText: React__default.FC<TranslateTextProps>;
|
|
64
|
+
|
|
65
|
+
interface TranslationContextType {
|
|
66
|
+
isTranslationMode: boolean;
|
|
67
|
+
setIsTranslationMode: (val: boolean) => void;
|
|
68
|
+
canEdit: boolean;
|
|
69
|
+
isLoadingPermissions: boolean;
|
|
70
|
+
updateTranslation: (key: string, namespace: string, newValue: string) => Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
declare const TranslationEditProvider: React__default.FC<{
|
|
73
|
+
children: React__default.ReactNode;
|
|
74
|
+
}>;
|
|
75
|
+
declare const useTranslationEdit: () => TranslationContextType;
|
|
76
|
+
|
|
77
|
+
interface Language {
|
|
78
|
+
code: string;
|
|
79
|
+
name: string;
|
|
80
|
+
svg_flag: string | null;
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
created_at?: string;
|
|
83
|
+
}
|
|
84
|
+
interface LocalizationContextType {
|
|
85
|
+
currentLang: string;
|
|
86
|
+
languages: Language[];
|
|
87
|
+
isLoadingLangs: boolean;
|
|
88
|
+
languagesError: string | null;
|
|
89
|
+
changeLanguage: (lang: string) => Promise<void>;
|
|
90
|
+
getDateFormat: () => string;
|
|
91
|
+
getTimeFormat: () => string;
|
|
92
|
+
getDateTimeFormat: () => string;
|
|
93
|
+
formatDateTime: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
94
|
+
formatDate: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
95
|
+
formatTime: (date: string | Date | number | null | undefined, customPattern?: string) => string;
|
|
96
|
+
formatRelativeTime: (date: string | Date | number | null | undefined, withoutSuffix?: boolean) => string;
|
|
97
|
+
}
|
|
98
|
+
declare const LocalizationProvider: React__default.FC<{
|
|
99
|
+
children: ReactNode;
|
|
100
|
+
}>;
|
|
101
|
+
declare const useLocalization: () => LocalizationContextType;
|
|
102
|
+
|
|
103
|
+
interface DisplayState {
|
|
104
|
+
isMobile: boolean;
|
|
105
|
+
isTablet: boolean;
|
|
106
|
+
isDesktop: boolean;
|
|
107
|
+
isWideDesktop: boolean;
|
|
108
|
+
isSuperWideDesktop: boolean;
|
|
109
|
+
}
|
|
110
|
+
type ThemeMode = 'light' | 'dark';
|
|
111
|
+
interface ThemeColors {
|
|
112
|
+
primary: string;
|
|
113
|
+
secondary: string;
|
|
114
|
+
backgroundDefault: string;
|
|
115
|
+
backgroundPaper: string;
|
|
116
|
+
textPrimary: string;
|
|
117
|
+
textSecondary: string;
|
|
118
|
+
success: string;
|
|
119
|
+
error: string;
|
|
120
|
+
warning: string;
|
|
121
|
+
info: string;
|
|
122
|
+
}
|
|
123
|
+
interface TypographyConfig {
|
|
124
|
+
fontFamily: string;
|
|
125
|
+
fontSize: number;
|
|
126
|
+
fontWeightLight: number;
|
|
127
|
+
fontWeightRegular: number;
|
|
128
|
+
fontWeightMedium: number;
|
|
129
|
+
fontWeightBold: number;
|
|
130
|
+
}
|
|
131
|
+
interface ThemeConfig {
|
|
132
|
+
id?: string;
|
|
133
|
+
name: string;
|
|
134
|
+
mode: ThemeMode;
|
|
135
|
+
borderRadius: number;
|
|
136
|
+
colors: {
|
|
137
|
+
light: ThemeColors;
|
|
138
|
+
dark: ThemeColors;
|
|
139
|
+
};
|
|
140
|
+
typography: TypographyConfig;
|
|
141
|
+
updatedAt?: string;
|
|
142
|
+
}
|
|
143
|
+
interface ThemeContextType {
|
|
144
|
+
mode: ThemeMode;
|
|
145
|
+
toggleTheme: () => void;
|
|
146
|
+
setMode: (mode: ThemeMode) => void;
|
|
147
|
+
theme: Theme;
|
|
148
|
+
themeConfig: ThemeConfig;
|
|
149
|
+
setThemeConfig: React__default.Dispatch<React__default.SetStateAction<ThemeConfig>>;
|
|
150
|
+
displayState: DisplayState;
|
|
151
|
+
}
|
|
152
|
+
declare const ThemeProvider: React__default.FC<{
|
|
153
|
+
children: React__default.ReactNode;
|
|
154
|
+
}>;
|
|
155
|
+
declare const useAppTheme: () => ThemeContextType;
|
|
156
|
+
|
|
157
|
+
interface BreadcrumbContextType {
|
|
158
|
+
breadcrumbTitles: Record<string, string>;
|
|
159
|
+
setBreadcrumbTitle: (path: string, title: string) => void;
|
|
160
|
+
}
|
|
161
|
+
declare const BreadcrumbProvider: React__default.FC<{
|
|
162
|
+
children: React__default.ReactNode;
|
|
163
|
+
}>;
|
|
164
|
+
declare const useBreadcrumb: () => BreadcrumbContextType;
|
|
165
|
+
|
|
166
|
+
type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
167
|
+
interface ToastContextType {
|
|
168
|
+
showToast: (text: React__default.ReactNode, type?: ToastType) => void;
|
|
169
|
+
hideToast: () => void;
|
|
170
|
+
}
|
|
171
|
+
declare const ToastProvider: React__default.FC<{
|
|
172
|
+
children: React__default.ReactNode;
|
|
173
|
+
}>;
|
|
174
|
+
declare const useToast: () => ToastContextType;
|
|
175
|
+
|
|
176
|
+
type DialogSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
177
|
+
type ConfirmResult = 'yes' | 'no' | 'cancel';
|
|
178
|
+
interface ConfirmOptions {
|
|
179
|
+
title?: ReactNode;
|
|
180
|
+
message: ReactNode;
|
|
181
|
+
type?: DialogSeverity;
|
|
182
|
+
showNoButton?: boolean;
|
|
183
|
+
showCancelButton?: boolean;
|
|
184
|
+
confirmText?: ReactNode;
|
|
185
|
+
noText?: ReactNode;
|
|
186
|
+
cancelText?: ReactNode;
|
|
187
|
+
confirmColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success';
|
|
188
|
+
}
|
|
189
|
+
interface ConfirmationProviderProps {
|
|
190
|
+
children: ReactNode;
|
|
191
|
+
}
|
|
192
|
+
declare const ConfirmationProvider: React__default.FC<ConfirmationProviderProps>;
|
|
193
|
+
declare const useConfirmation: () => ((options: ConfirmOptions) => Promise<ConfirmResult>);
|
|
194
|
+
|
|
195
|
+
type AIProviderType = 'gemini' | 'openai';
|
|
196
|
+
interface AIGenerateOptions {
|
|
197
|
+
prompt: string;
|
|
198
|
+
systemInstruction?: string;
|
|
199
|
+
jsonMode?: boolean;
|
|
200
|
+
temperature?: number;
|
|
201
|
+
}
|
|
202
|
+
interface AIConfig {
|
|
203
|
+
apiKey?: string;
|
|
204
|
+
provider?: AIProviderType;
|
|
205
|
+
modelName?: string;
|
|
206
|
+
}
|
|
207
|
+
interface AIContextType {
|
|
208
|
+
apiKey?: string;
|
|
209
|
+
provider: AIProviderType;
|
|
210
|
+
modelName: string;
|
|
211
|
+
/** Универсальный метод генерации (текст или JSON) */
|
|
212
|
+
generate: <T = string>(options: AIGenerateOptions) => Promise<T | null>;
|
|
213
|
+
}
|
|
214
|
+
interface AIProviderProps {
|
|
215
|
+
children: React__default.ReactNode;
|
|
216
|
+
config?: AIConfig;
|
|
217
|
+
apiKey?: string;
|
|
218
|
+
}
|
|
219
|
+
declare const AIProvider: React__default.FC<AIProviderProps>;
|
|
220
|
+
declare const useAI: () => AIContextType;
|
|
221
|
+
|
|
222
|
+
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, BreadcrumbProvider, CardForm, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, type DialogSeverity, type DisplayState, type Language, LocalizationProvider, type NumberInputComponentProps, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, type TextfieldComponentProps, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslateProvider, TranslateText, TranslationEditProvider, type TypographyConfig, useAI, useAppTheme, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace };
|