@spteck/react-controls-v2 2.6.0 → 2.6.2

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 (69) hide show
  1. package/dist/LocalizationProvider-BUBYkX-c.cjs +2 -0
  2. package/dist/{LocalizationProvider-D13keh6K.js → LocalizationProvider-DZ7gAJ1G.js} +205 -23
  3. package/dist/abstractions/index.d.ts +1 -0
  4. package/dist/components/BackgroundVideo/BackgroundVideo.d.ts +25 -0
  5. package/dist/components/BackgroundVideo/IBackgroundVideoProps.d.ts +9 -0
  6. package/dist/components/BackgroundVideo/index.d.ts +3 -0
  7. package/dist/components/Dropzone/mime-types.d.ts +1 -1
  8. package/dist/components/Hero/Hero.d.ts +7 -0
  9. package/dist/components/Hero/HeroItem.d.ts +13 -0
  10. package/dist/components/Hero/HeroOverlay.d.ts +10 -0
  11. package/dist/components/Hero/IHeroProps.d.ts +106 -0
  12. package/dist/components/Hero/index.d.ts +3 -0
  13. package/dist/components/Hero/layouts/HeroCarousel.d.ts +4 -0
  14. package/dist/components/Hero/layouts/HeroFeatured.d.ts +4 -0
  15. package/dist/components/Hero/layouts/HeroFilmstrip.d.ts +4 -0
  16. package/dist/components/Hero/layouts/HeroFullscreen.d.ts +4 -0
  17. package/dist/components/Hero/layouts/HeroGrid.d.ts +4 -0
  18. package/dist/components/Hero/layouts/HeroMosaic.d.ts +4 -0
  19. package/dist/components/Hero/layouts/HeroSplit.d.ts +4 -0
  20. package/dist/components/Hero/useHeroLayout.d.ts +12 -0
  21. package/dist/components/Hero/useHeroStyles.d.ts +26 -0
  22. package/dist/components/index.d.ts +3 -1
  23. package/dist/components/stackv2/IStackV2Props.d.ts +9 -1
  24. package/dist/components/videoPlayer/VideoPlayer.d.ts +2 -2
  25. package/dist/hooks/index.d.ts +4 -1
  26. package/dist/hooks/useAIAssistant.d.ts +3 -24
  27. package/dist/hooks/useAIAssistantParser.d.ts +3 -29
  28. package/dist/hooks/useAppToast.d.ts +27 -0
  29. package/dist/hooks/useBrandCenterFonts.d.ts +2 -30
  30. package/dist/hooks/useExportData.d.ts +25 -0
  31. package/dist/hooks/useFluentEmoji.d.ts +3 -7
  32. package/dist/hooks/useGraphAPI.d.ts +3 -19
  33. package/dist/hooks/useHeroRotation.d.ts +18 -0
  34. package/dist/hooks/useIndexedDB.d.ts +4 -11
  35. package/dist/hooks/useLocalizationStrings.d.ts +2 -12
  36. package/dist/hooks/useLogging.d.ts +3 -10
  37. package/dist/hooks/usePolling.d.ts +3 -5
  38. package/dist/hooks/useTimeZoneHelper.d.ts +11 -11
  39. package/dist/index.cjs +117 -110
  40. package/dist/index.d.ts +2 -2
  41. package/dist/index.js +5988 -5032
  42. package/dist/models/IExportData.d.ts +75 -0
  43. package/dist/models/IToastContent.d.ts +19 -0
  44. package/dist/models/IToastOptions.d.ts +14 -0
  45. package/dist/models/IUseAIAssistant.d.ts +48 -0
  46. package/dist/models/IUseAIAssistantParser.d.ts +28 -0
  47. package/dist/models/IUseAppToast.d.ts +81 -0
  48. package/dist/models/IUseBrandCenterFonts.d.ts +30 -0
  49. package/dist/models/IUseFluentEmoji.d.ts +25 -0
  50. package/dist/models/IUseGraphAPI.d.ts +39 -0
  51. package/dist/models/IUseHeroRotation.d.ts +11 -0
  52. package/dist/models/IUseIndexedDB.d.ts +31 -0
  53. package/dist/models/IUseLocalizationStrings.d.ts +17 -0
  54. package/dist/models/IUseLogging.d.ts +40 -0
  55. package/dist/models/IUsePolling.d.ts +9 -0
  56. package/dist/models/IUseTimeZoneHelper.d.ts +50 -0
  57. package/dist/models/index.d.ts +15 -0
  58. package/dist/providers.cjs +1 -2
  59. package/dist/providers.js +2 -189
  60. package/dist/utils/index.d.ts +1 -0
  61. package/dist/utils/useExportDataUtils.d.ts +23 -0
  62. package/package.json +5 -2
  63. package/dist/LocalizationProvider-DEmAXWvz.cjs +0 -2
  64. package/dist/components/Stack/IStackProps.d.ts +0 -12
  65. package/dist/components/Stack/Stack.d.ts +0 -4
  66. package/dist/components/Stack/StackItem.d.ts +0 -12
  67. package/dist/components/Stack/index.d.ts +0 -5
  68. package/dist/components/Stack/useStackStyles.d.ts +0 -6
  69. package/dist/hooks/useTimeZone.d.ts +0 -12
@@ -1,4 +1,6 @@
1
1
  export * from './AspectRatio';
2
+ export * from './BackgroundImage';
3
+ export * from './BackgroundVideo';
2
4
  export * from './Card';
3
5
  export * from './Carousel';
4
6
  export * from './Center';
@@ -14,7 +16,6 @@ export * from './Provider';
14
16
  export * from './RenderLabel';
15
17
  export * from './RenderSpninner';
16
18
  export * from './Space';
17
- export * from './Stack';
18
19
  export * from './adaptiveCardHost';
19
20
  export * from './aiAssistant';
20
21
  export * from './breadcrumb';
@@ -54,4 +55,5 @@ export * from './KPIControl';
54
55
  export * from './SplitPane';
55
56
  export * from './MermaidDiagram';
56
57
  export * from './fluentUIProvider';
58
+ export * from './Hero';
57
59
  //# sourceMappingURL=index.d.ts.map
@@ -61,7 +61,7 @@ export interface IStackV2Props {
61
61
  /**
62
62
  * Child components to be rendered inside the stack.
63
63
  */
64
- children: React.ReactNode;
64
+ children?: React.ReactNode;
65
65
  /**
66
66
  * Additional inline styles.
67
67
  */
@@ -73,5 +73,13 @@ export interface IStackV2Props {
73
73
  overflow?: React.CSSProperties["overflow"];
74
74
  /** background Color */
75
75
  background?: React.CSSProperties["backgroundColor"];
76
+ /** HTML id attribute */
77
+ id?: string;
78
+ /** ARIA role */
79
+ role?: React.AriaRole;
80
+ /** ARIA label */
81
+ 'aria-label'?: string;
82
+ /** ARIA hidden */
83
+ 'aria-hidden'?: boolean | 'true' | 'false';
76
84
  }
77
85
  //# sourceMappingURL=IStackV2Props.d.ts.map
@@ -40,9 +40,9 @@ export interface IVideoPlayerProps {
40
40
  tracks?: {
41
41
  kind: string;
42
42
  src: string;
43
- srcLang?: string;
43
+ srcLang: string;
44
44
  default?: boolean;
45
- label?: string;
45
+ label: string;
46
46
  }[];
47
47
  forceVideo?: boolean;
48
48
  forceAudio?: boolean;
@@ -2,10 +2,13 @@ export * from './useLogging';
2
2
  export * from './useGraphAPI';
3
3
  export * from './useIndexedDB';
4
4
  export * from './usePolling';
5
- export * from './useTimeZone';
5
+ export * from './useHeroRotation';
6
+ export * from './useTimeZoneHelper';
6
7
  export * from './useAIAssistantParser';
7
8
  export * from './useAIAssistant';
8
9
  export * from './useLocalizationStrings';
9
10
  export * from './useBrandCenterFonts';
10
11
  export * from './useFluentEmoji';
12
+ export * from './useAppToast';
13
+ export * from './useExportData';
11
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,26 +1,5 @@
1
- export interface AIAssistantConfig {
2
- endpoint?: string;
3
- mcpServers?: Record<string, any>;
4
- conversationId?: string;
5
- requestHeaders?: Record<string, string>;
6
- }
7
- export interface AIAssistantMessage {
8
- instructions?: string;
9
- input: string;
10
- timezone?: string;
11
- locale?: string;
12
- history?: string[];
13
- mcpServers?: Record<string, any>;
14
- }
15
- export interface UseAIAssistantResult {
16
- response: string;
17
- isLoading: boolean;
18
- error: string | null;
19
- sendMessage: (message: AIAssistantMessage, onProgress?: (text: string) => void) => Promise<string>;
20
- cancelRequest: () => void;
21
- resetConversation: () => void;
22
- conversationId: string;
23
- }
1
+ import { AIAssistantConfig, IUseAIAssistantReturn } from '../models/IUseAIAssistant';
2
+ export type { AIAssistantConfig, AIAssistantMessage, IUseAIAssistantReturn, UseAIAssistantResult } from '../models/IUseAIAssistant';
24
3
  /**
25
4
  * Custom hook for interacting with AI Assistant API with SSE streaming support
26
5
  *
@@ -47,5 +26,5 @@ export interface UseAIAssistantResult {
47
26
  * };
48
27
  * ```
49
28
  */
50
- export declare const useAIAssistant: (config: AIAssistantConfig) => UseAIAssistantResult;
29
+ export declare const useAIAssistant: (config: AIAssistantConfig) => IUseAIAssistantReturn;
51
30
  //# sourceMappingURL=useAIAssistant.d.ts.map
@@ -1,31 +1,5 @@
1
- /**
2
- * Represents the parsed response from the AI Assistant SSE stream
3
- */
4
- export interface ParsedAIResponse<T = unknown> {
5
- /** Parsed JSON data (typed as unknown for flexibility) */
6
- data: T | undefined;
7
- /** Raw text content extracted from SSE */
8
- rawText: string;
9
- /** Indicates if the response is valid JSON */
10
- isJson: boolean;
11
- /** Error message if parsing failed */
12
- error?: string;
13
- }
14
- /**
15
- * Configuration options for the parser
16
- */
17
- export interface ParserOptions {
18
- /** Whether to remove markdown code blocks (default: true) */
19
- stripMarkdown?: boolean;
20
- /** Whether to log debug information (default: false) */
21
- debug?: boolean;
22
- }
23
- /**
24
- * Return type for the useAIAssistantParser hook
25
- */
26
- export interface UseAIAssistantParserReturn {
27
- parseSSEResponse: <T = unknown>(rawResponse: string, options?: ParserOptions) => ParsedAIResponse<T>;
28
- }
1
+ import { IUseAIAssistantParserReturn } from '../models/IUseAIAssistantParser';
2
+ export type { ParsedAIResponse, ParserOptions, IUseAIAssistantParserReturn, UseAIAssistantParserReturn } from '../models/IUseAIAssistantParser';
29
3
  /**
30
4
  * Custom hook for parsing Server-Sent Events (SSE) responses from AI Assistant API
31
5
  *
@@ -41,5 +15,5 @@ export interface UseAIAssistantParserReturn {
41
15
  *
42
16
  * @returns Object containing parseSSEResponse function
43
17
  */
44
- export declare const useAIAssistantParser: () => UseAIAssistantParserReturn;
18
+ export declare const useAIAssistantParser: () => IUseAIAssistantParserReturn;
45
19
  //# sourceMappingURL=useAIAssistantParser.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { IAppToasterConfig, IUseAppToastReturn } from '../models/IUseAppToast';
2
+ export type { IAppToasterConfig, IUseAppToastReturn } from '../models/IUseAppToast';
3
+ /**
4
+ * Consolidated toast hook that provides both toast functionality and the ToasterProvider component.
5
+ * This follows React best practices by consolidating all toast-related logic in one place.
6
+ *
7
+ * @param config - Optional configuration for toast positioning and behavior
8
+ * @returns Object containing toast methods and the ToasterProvider component
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const { showSuccessToast, showErrorToast, ToasterProvider } = useAppToast({
13
+ * position: "top-end"
14
+ * });
15
+ *
16
+ * // In your component JSX:
17
+ * return (
18
+ * <div>
19
+ * <YourContent />
20
+ * <ToasterProvider />
21
+ * </div>
22
+ * );
23
+ * ```
24
+ */
25
+ export declare const toasterId = "app-toaster";
26
+ export declare const useAppToast: (config?: IAppToasterConfig) => IUseAppToastReturn;
27
+ //# sourceMappingURL=useAppToast.d.ts.map
@@ -1,33 +1,5 @@
1
- import { IBrandCenterFont } from '../abstractions/IBrandCenterFonts';
2
- /** Options for the useBrandCenterFonts hook */
3
- export interface IUseBrandCenterFontsOptions {
4
- /** SharePoint site URL (e.g. "https://contoso.sharepoint.com/sites/brand").
5
- * When omitted the hook reads it from `pageContext.web.absoluteUrl`. */
6
- siteUrl?: string;
7
- /** If true the hook will NOT fetch from Brand Center;
8
- * use `fonts` to supply a static list instead. */
9
- disabled?: boolean;
10
- /** Provide brand fonts directly instead of fetching from the API.
11
- * Useful for testing or when fonts are already available. */
12
- fonts?: IBrandCenterFont[];
13
- }
14
- /** Return value of useBrandCenterFonts */
15
- export interface IUseBrandCenterFontsReturn {
16
- /** Available Brand Center fonts (or Fluent UI defaults if Brand Center is not configured) */
17
- fonts: IBrandCenterFont[];
18
- /** Font family names ready for CSS / TypographyControl.fontFamily */
19
- fontFamilyNames: string[];
20
- /** The organization's default font (if any) */
21
- defaultFont: IBrandCenterFont | undefined;
22
- /** Whether data is currently being fetched */
23
- loading: boolean;
24
- /** Error message, if the fetch failed */
25
- error: string | undefined;
26
- /** Whether Brand Center fonts are configured for this tenant */
27
- isBrandCenterAvailable: boolean;
28
- /** Re-fetch fonts from the API */
29
- refresh: () => Promise<void>;
30
- }
1
+ import { IUseBrandCenterFontsOptions, IUseBrandCenterFontsReturn } from '../models/IUseBrandCenterFonts';
2
+ export type { IUseBrandCenterFontsOptions, IUseBrandCenterFontsReturn } from '../models/IUseBrandCenterFonts';
31
3
  /**
32
4
  * React hook that loads fonts from the SharePoint Brand Center and
33
5
  * injects `@font-face` rules so they can be used anywhere in the app
@@ -0,0 +1,25 @@
1
+ import { IUseExportData } from '../models/IExportData';
2
+ export type { IExcelHeaderStyle, ExportDataFetcher, IExportExcelOptions, IExportJSONOptions, IExportCSVOptions, IUseExportData, } from '../models/IExportData';
3
+ /**
4
+ * Provides file download helpers for Excel (`.xlsx`), JSON, and CSV,
5
+ * with a built-in progress dialog that shows during async exports.
6
+ *
7
+ * Pass a static array for instant exports, or an {@link ExportDataFetcher}
8
+ * for paginated async sources — the dialog will track progress automatically.
9
+ *
10
+ * Mount `ProgressDialog` once in your component tree:
11
+ * ```tsx
12
+ * const { exportToExcel, exportToJSON, exportToCSV, ProgressDialog } = useExportData();
13
+ *
14
+ * return (
15
+ * <>
16
+ * <Button onClick={() => exportToExcel(fetcher, { fileName: 'report', includeMetaSheet: true })}>
17
+ * Export to Excel
18
+ * </Button>
19
+ * {ProgressDialog}
20
+ * </>
21
+ * );
22
+ * ```
23
+ */
24
+ export declare const useExportData: () => IUseExportData;
25
+ //# sourceMappingURL=useExportData.d.ts.map
@@ -1,12 +1,8 @@
1
- export type TeamsReactionImageStyle = '3D' | 'Color' | 'Flat' | 'HighContrast';
2
- export interface IUseFluentEmojiResult {
3
- getEmoji: (reactionType: string, style?: TeamsReactionImageStyle) => string | undefined;
4
- getAvailableEmojis: () => string[];
5
- hasEmoji: (reactionType: string, style?: TeamsReactionImageStyle) => boolean;
6
- }
1
+ import { IUseFluentEmojiReturn } from '../models/IUseFluentEmoji';
2
+ export type { TeamsReactionImageStyle, IUseFluentEmojiReturn, IUseFluentEmojiResult } from '../models/IUseFluentEmoji';
7
3
  /**
8
4
  * Resolves a Teams/Graph reactionType such as `yes`, `yes-tone2`, `heart`, or
9
5
  * a raw Unicode emoji glyph to a Fluent emoji image URL.
10
6
  */
11
- export declare const useFluentEmoji: () => IUseFluentEmojiResult;
7
+ export declare const useFluentEmoji: () => IUseFluentEmojiReturn;
12
8
  //# sourceMappingURL=useFluentEmoji.d.ts.map
@@ -1,24 +1,8 @@
1
- import { User } from '@microsoft/microsoft-graph-types';
1
+ import { IUseGraphAPIReturn } from '../models/IUseGraphAPI';
2
+ export type { IUseGraphAPIReturn, IUserInfo } from '../models/IUseGraphAPI';
2
3
  /**
3
4
  * Hook for Microsoft Graph API operations
4
5
  * Uses the graph client from the application context
5
6
  */
6
- export declare const useGraphAPI: () => {
7
- getUser: (userId: string) => Promise<User | null>;
8
- getCurrentUser: () => Promise<User | null>;
9
- searchUsers: (query: string, top?: number) => Promise<User[]>;
10
- getUserPhoto: (userId: string) => Promise<string | null>;
11
- graphClient: import('..').IGraphProvider | undefined;
12
- };
13
- /**
14
- * User information interface for convenience
15
- */
16
- export interface IUserInfo {
17
- displayName?: string;
18
- email?: string;
19
- jobTitle?: string;
20
- officeLocation?: string;
21
- mobilePhone?: string;
22
- businessPhones?: string[];
23
- }
7
+ export declare const useGraphAPI: () => IUseGraphAPIReturn;
24
8
  //# sourceMappingURL=useGraphAPI.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { IHeroItem, IHeroRotation } from '../components/Hero/IHeroProps';
2
+ export type { IUseHeroRotationOptions } from '../models/IUseHeroRotation';
3
+ /**
4
+ * Manages the visible item slice for rotating Hero layouts.
5
+ *
6
+ * @param items Full item pool provided by the consumer
7
+ * @param slots Number of items the layout shows at once
8
+ * (1 for fullscreen, 2 for split / featured)
9
+ * @param rotation Optional rotation config from `IHeroProps.rotation`
10
+ * @returns The slice of items to render right now
11
+ *
12
+ * Rotation only activates when `items.length > slots`.
13
+ * - `'interval'` mode: uses `usePolling` to advance the window by one position
14
+ * every `intervalMs` ms (default 5 000 ms).
15
+ * - `'refresh'` mode: picks a random starting index on mount and never changes it.
16
+ */
17
+ export declare function useHeroRotation(items: IHeroItem[], slots: number, rotation?: IHeroRotation): IHeroItem[];
18
+ //# sourceMappingURL=useHeroRotation.d.ts.map
@@ -1,19 +1,12 @@
1
+ import { IUseIndexedDBCacheReturn, IUseCachedDataReturn } from '../models/IUseIndexedDB';
2
+ export type { IUseIndexedDBCacheReturn, IUseCachedDataReturn } from '../models/IUseIndexedDB';
1
3
  /**
2
4
  * Hook for IndexedDB or generic storage operations
3
5
  * Uses the storage provider from the application context
4
6
  */
5
- export declare const useIndexedDBCache: <T = any>() => {
6
- getCachedData: (key: string) => Promise<T | undefined>;
7
- setCachedData: (key: string, value: T, expirationInMinutes?: number) => Promise<void>;
8
- removeCachedData: (key: string) => Promise<void>;
9
- clearCache: () => Promise<void>;
10
- };
7
+ export declare const useIndexedDBCache: <T = any>() => IUseIndexedDBCacheReturn<T>;
11
8
  /**
12
9
  * Hook for caching data with automatic retrieval and storage
13
10
  */
14
- export declare const useCachedData: <T = any>(key: string, fetcher: () => Promise<T>, expirationInMinutes?: number) => {
15
- data: T | undefined;
16
- loading: boolean;
17
- error: Error | undefined;
18
- };
11
+ export declare const useCachedData: <T = any>(key: string, fetcher: () => Promise<T>, expirationInMinutes?: number) => IUseCachedDataReturn<T>;
19
12
  //# sourceMappingURL=useIndexedDB.d.ts.map
@@ -1,16 +1,6 @@
1
1
  import { ILibraryStrings } from '../localization/ILibraryStrings';
2
- export interface ILocalizationContext {
3
- /** The underlying localization provider */
4
- provider: unknown;
5
- /** All resolved strings for the current locale */
6
- strings: ILibraryStrings;
7
- /** Current locale code */
8
- locale: string;
9
- /** Whether the current locale is RTL */
10
- isRtl: boolean;
11
- /** Change the active locale (triggers async bundle loading) */
12
- setLocale: (locale: string) => Promise<void>;
13
- }
2
+ import { ILocalizationContext } from '../models/IUseLocalizationStrings';
3
+ export type { ILocalizationContext } from '../models/IUseLocalizationStrings';
14
4
  export declare const LocalizationContext: import('react').Context<ILocalizationContext | undefined>;
15
5
  /**
16
6
  * Hook to access the full localization context
@@ -1,17 +1,10 @@
1
- import { LogLevel, ErrorType } from '../abstractions';
1
+ import { IUseLoggingReturn } from '../models/IUseLogging';
2
+ export type { IUseLoggingReturn } from '../models/IUseLogging';
2
3
  /**
3
4
  * Hook for logging operations
4
5
  * Uses the logging provider from the application context
5
6
  *
6
7
  * @returns Logging functions
7
8
  */
8
- export declare const useLogging: () => {
9
- log: (message: string, level?: LogLevel, data?: any) => void;
10
- error: (message: string, err?: Error, errorType?: ErrorType) => void;
11
- warn: (message: string, data?: any) => void;
12
- info: (message: string, data?: any) => void;
13
- verbose: (message: string, data?: any) => void;
14
- LogLevel: typeof LogLevel;
15
- ErrorType: typeof ErrorType;
16
- };
9
+ export declare const useLogging: () => IUseLoggingReturn;
17
10
  //# sourceMappingURL=useLogging.d.ts.map
@@ -1,3 +1,5 @@
1
+ import { IUsePollingReturn } from '../models/IUsePolling';
2
+ export type { IUsePollingReturn } from '../models/IUsePolling';
1
3
  /**
2
4
  * Hook for polling data at regular intervals
3
5
  *
@@ -5,9 +7,5 @@
5
7
  * @param interval - Polling interval in milliseconds
6
8
  * @param immediate - Whether to call immediately on mount
7
9
  */
8
- export declare const usePolling: (callback: () => void | Promise<void>, interval: number, immediate?: boolean) => {
9
- startPolling: () => void;
10
- stopPolling: () => void;
11
- isPolling: boolean;
12
- };
10
+ export declare const usePolling: (callback: () => void | Promise<void>, interval: number, immediate?: boolean) => IUsePollingReturn;
13
11
  //# sourceMappingURL=usePolling.d.ts.map
@@ -1,15 +1,15 @@
1
+ import { IUseTimeZoneHelperReturn } from '../models/IUseTimeZoneHelper';
2
+ export type { IUseTimeZoneHelperReturn } from '../models/IUseTimeZoneHelper';
1
3
  /**
2
- * Hook for time zone and date/time formatting operations
4
+ * Unified hook for timezone conversions and locale-aware date/time formatting.
3
5
  *
4
- * @param timezone - Optional timezone string (e.g., 'America/New_York')
5
- * @param locale - Optional locale string (e.g., 'en-US')
6
- * @returns Object with date formatting functions
6
+ * Combines DST-safe conversions (date-fns-tz) with locale-aware relative/absolute
7
+ * formatting (date-fns). Optionally reads the user timezone from the application
8
+ * context when running inside a UniversalProvider.
9
+ *
10
+ * @param timezone - Optional timezone string (e.g. 'America/New_York').
11
+ * Falls back to the browser timezone when omitted.
12
+ * @param locale - Optional locale code (e.g. 'en-US'). Defaults to 'en-US'.
7
13
  */
8
- export declare const useTimeZoneHelper: (timezone?: string, locale?: string) => {
9
- getFormatRelative: (date: Date | string) => string;
10
- convertDateToUTC: (date: Date | string) => Date;
11
- formatDate: (date: Date | string, formatString?: string) => string;
12
- getTimezoneOffset: () => number;
13
- convertToTimezone: (date: Date | string, tz?: string) => string;
14
- };
14
+ export declare const useTimeZoneHelper: (timezone?: string, locale?: string) => IUseTimeZoneHelperReturn;
15
15
  //# sourceMappingURL=useTimeZoneHelper.d.ts.map