@cp949/mui-react19 2.0.2 → 2.1.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -3
  3. package/dist/closables-CeOGJV-d.d.cts +136 -0
  4. package/dist/closables-CeOGJV-d.d.ts +136 -0
  5. package/dist/file-drop/index.cjs +1 -1
  6. package/dist/file-drop/index.cjs.map +1 -1
  7. package/dist/file-drop/index.d.cts +224 -217
  8. package/dist/file-drop/index.d.ts +224 -217
  9. package/dist/file-drop/index.js +1 -1
  10. package/dist/file-drop/index.js.map +1 -1
  11. package/dist/helper/index.cjs +1 -1
  12. package/dist/helper/index.cjs.map +1 -1
  13. package/dist/helper/index.d.cts +22 -38
  14. package/dist/helper/index.d.ts +22 -38
  15. package/dist/helper/index.js +1 -1
  16. package/dist/helper/index.js.map +1 -1
  17. package/dist/hooks/index.cjs +1 -1
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.cts +439 -305
  20. package/dist/hooks/index.d.ts +439 -305
  21. package/dist/hooks/index.js +1 -1
  22. package/dist/hooks/index.js.map +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1150 -737
  26. package/dist/index.d.ts +1150 -737
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/misc-utils-B2de-HS4.cjs +2 -0
  30. package/dist/misc-utils-B2de-HS4.cjs.map +1 -0
  31. package/dist/misc-utils-BXQ8UU0R.js +2 -0
  32. package/dist/misc-utils-BXQ8UU0R.js.map +1 -0
  33. package/dist/parallel-map-DyuHvxYY.js +2 -0
  34. package/dist/parallel-map-DyuHvxYY.js.map +1 -0
  35. package/dist/parallel-map-_ZhC5iBn.cjs +2 -0
  36. package/dist/parallel-map-_ZhC5iBn.cjs.map +1 -0
  37. package/dist/rolldown-runtime-Chgba0Kb.cjs +1 -0
  38. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  39. package/llm.txt +350 -0
  40. package/package.json +31 -28
  41. package/dist/chunk-4C666HHU.js +0 -2
  42. package/dist/chunk-4C666HHU.js.map +0 -1
  43. package/dist/chunk-DGBGKY22.cjs +0 -2
  44. package/dist/chunk-DGBGKY22.cjs.map +0 -1
  45. package/dist/chunk-J5UGIABI.js +0 -2
  46. package/dist/chunk-J5UGIABI.js.map +0 -1
  47. package/dist/chunk-M4G6J7DP.cjs +0 -2
  48. package/dist/chunk-M4G6J7DP.cjs.map +0 -1
  49. package/dist/closables-BK0Db72u.d.cts +0 -135
  50. package/dist/closables-BK0Db72u.d.ts +0 -135
  51. package/dist/parallel-map-M764G6IE.js +0 -2
  52. package/dist/parallel-map-M764G6IE.js.map +0 -1
  53. package/dist/parallel-map-V2OVUIFQ.cjs +0 -2
  54. package/dist/parallel-map-V2OVUIFQ.cjs.map +0 -1
@@ -1,19 +1,18 @@
1
- import * as react from 'react';
2
- import react__default, { DependencyList, EffectCallback, SetStateAction, useEffect, Dispatch } from 'react';
3
- import { C as Closables } from '../closables-BK0Db72u.js';
4
- import { UseMediaQueryOptions } from '@mui/material';
5
- import 'rxjs';
6
-
1
+ import { t as Closables } from "../closables-CeOGJV-d.js";
2
+ import React$1, { DependencyList, Dispatch, EffectCallback, SetStateAction, useEffect } from "react";
3
+ import { UseMediaQueryOptions } from "@mui/material/useMediaQuery";
4
+ //#region src/hooks/useAbsolutePosition.d.ts
7
5
  /**
8
6
  * 주어진 요소의 좌측,상단 위치를 리턴한다.
9
7
  */
10
- declare function useAbsolutePosition<E extends Element = Element>(deps: react__default.DependencyList, options?: {
11
- intervalMs?: number;
8
+ export declare function useAbsolutePosition<E extends Element = Element>(deps: React$1.DependencyList, options?: {
9
+ intervalMs?: number;
12
10
  }): [(element: E | null) => void, {
13
- x: number;
14
- y: number;
11
+ x: number;
12
+ y: number;
15
13
  }];
16
-
14
+ //#endregion
15
+ //#region src/hooks/useAudioUnlocked.d.ts
17
16
  /**
18
17
  * 사용자의 입력(터치, 클릭, 키보드 등)을 감지하여 오디오가 활성화되었는지(unlocked) 상태를 관리하는 커스텀 훅입니다.
19
18
  *
@@ -40,23 +39,26 @@ declare function useAbsolutePosition<E extends Element = Element>(deps: react__d
40
39
  * );
41
40
  * ```
42
41
  */
43
- declare function useAudioUnlocked(options: {
44
- onUnlocked: () => void;
42
+ export declare function useAudioUnlocked(options: {
43
+ onUnlocked: () => void;
45
44
  }): boolean;
46
-
45
+ //#endregion
46
+ //#region src/hooks/types.d.ts
47
47
  interface Observable<T> {
48
- subscribe: (listener: (value: T) => void) => {
49
- unsubscribe: () => void;
50
- };
48
+ subscribe: (listener: (value: T) => void) => {
49
+ unsubscribe: () => void;
50
+ };
51
51
  }
52
52
  interface BehaviorSubject<T> extends Observable<T> {
53
- value: T;
53
+ value: T;
54
54
  }
55
55
  type DependenciesComparator<Deps extends DependencyList = DependencyList> = (a: Deps, b: Deps) => boolean;
56
-
56
+ //#endregion
57
+ //#region src/hooks/useBehaviorSubject.d.ts
57
58
  type Fn<T> = () => T;
58
- declare function useBehaviorSubject<TItem>(subject: BehaviorSubject<TItem> | Fn<BehaviorSubject<TItem>>): TItem;
59
-
59
+ export declare function useBehaviorSubject<TItem>(subject: BehaviorSubject<TItem> | Fn<BehaviorSubject<TItem>>): TItem;
60
+ //#endregion
61
+ //#region src/hooks/useCallbackRef.d.ts
60
62
  /**
61
63
  * React 컴포넌트에서 최신의 콜백을 안전하게 참조하기 위한 커스텀 훅.
62
64
  *
@@ -86,8 +88,9 @@ declare function useBehaviorSubject<TItem>(subject: BehaviorSubject<TItem> | Fn<
86
88
  * };
87
89
  * ```
88
90
  */
89
- declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined): T;
90
-
91
+ export declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined): T;
92
+ //#endregion
93
+ //#region src/hooks/useCenterInView.d.ts
91
94
  /**
92
95
  * 특정 요소가 뷰포트의 세로 중앙에 위치해 있는지를 감지하는 커스텀 React 훅입니다.
93
96
  *
@@ -110,11 +113,12 @@ declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T |
110
113
  * );
111
114
  * ```
112
115
  */
113
- declare function useCenterInView(offset?: number): {
114
- ref: React.RefObject<HTMLDivElement | null>;
115
- isCenter: boolean;
116
+ export declare function useCenterInView(offset?: number): {
117
+ ref: React.RefObject<HTMLDivElement | null>;
118
+ isCenter: boolean;
116
119
  };
117
-
120
+ //#endregion
121
+ //#region src/hooks/useClipboard.d.ts
118
122
  /**
119
123
  * 클립보드 복사 기능을 제공하는 React 훅입니다.
120
124
  *
@@ -140,18 +144,20 @@ declare function useCenterInView(offset?: number): {
140
144
  * );
141
145
  * ```
142
146
  */
143
- declare function useClipboard({ timeout }?: {
144
- timeout?: number | undefined;
147
+ export declare function useClipboard({ timeout }?: {
148
+ timeout?: number | undefined;
145
149
  }): {
146
- copy: (valueToCopy: string) => Promise<boolean>;
147
- reset: () => void;
148
- error: Error | null;
149
- copied: boolean;
150
+ copy: (valueToCopy: string) => Promise<boolean>;
151
+ reset: () => void;
152
+ error: Error | null;
153
+ copied: boolean;
150
154
  };
151
-
155
+ //#endregion
156
+ //#region src/hooks/useClosableEffect.d.ts
152
157
  type Callback = ((closable: Closables) => VoidFunction | undefined) | ((closable: Closables) => void);
153
- declare function useClosableEffect(callback: Callback, deps: unknown[]): void;
154
-
158
+ export declare function useClosableEffect(callback: Callback, deps: unknown[]): void;
159
+ //#endregion
160
+ //#region src/hooks/useComposedRefs.d.ts
155
161
  type PossibleRef<T> = React.Ref<T> | undefined;
156
162
  /**
157
163
  * A utility to compose multiple refs together
@@ -163,9 +169,36 @@ declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) =>
163
169
  * Accepts callback refs and RefObject(s)
164
170
  */
165
171
  declare function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
166
-
167
- declare function useConstant<T>(fn: () => T): T;
168
-
172
+ //#endregion
173
+ //#region src/hooks/useConstant.d.ts
174
+ export declare function useConstant<T>(fn: () => T): T;
175
+ //#endregion
176
+ //#region src/hooks/useCooldown.d.ts
177
+ /**
178
+ * useCooldown
179
+ *
180
+ * 트리거 호출 시 콜백을 즉시 실행하고, 지정한 시간(cooldown) 동안 재호출을 막는 React 훅
181
+ *
182
+ * @param callback - 쿨다운 종료 전까지 1회만 허용할 콜백 함수. `undefined`이면 트리거가 아무 동작도 하지 않음
183
+ * @param cooldown - 쿨다운 지속 시간(ms)
184
+ *
185
+ * @returns 쿨다운 상태와 트리거 함수가 담긴 객체
186
+ * - `isCooldown`: 현재 쿨다운 중인지 여부
187
+ * - `trigger`: 콜백을 감싼 트리거 함수. 쿨다운 중에는 호출을 무시함
188
+ *
189
+ * @example
190
+ * ```tsx
191
+ * const { isCooldown, trigger } = useCooldown(onClick, 1000);
192
+ *
193
+ * return <button onClick={trigger} disabled={isCooldown} />;
194
+ * ```
195
+ */
196
+ export declare function useCooldown<T extends (...args: any[]) => void = () => void>(callback: T | undefined, cooldown: number): {
197
+ isCooldown: boolean;
198
+ trigger: (...args: Parameters<T>) => void;
199
+ };
200
+ //#endregion
201
+ //#region src/hooks/useCustomCompareEffect.d.ts
169
202
  type DepsEqualFnType<TDeps extends DependencyList> = (prevDeps: TDeps, nextDeps: TDeps) => boolean;
170
203
  /**
171
204
  * 사용자 정의 비교 함수를 사용하여 `useEffect`의 의존성 배열을 커스텀 비교 방식으로 처리할 수 있는 커스텀 훅입니다.
@@ -216,8 +249,9 @@ type DepsEqualFnType<TDeps extends DependencyList> = (prevDeps: TDeps, nextDeps:
216
249
  *
217
250
  * @returns 없음. 이 훅은 `useEffect`와 동일하게 부수 효과를 실행하며, 반환값은 없습니다.
218
251
  */
219
- declare const useCustomCompareEffect: <TDeps extends DependencyList>(effect: EffectCallback, deps: TDeps, depsEqual: DepsEqualFnType<TDeps>) => void;
220
-
252
+ export declare const useCustomCompareEffect: <TDeps extends DependencyList>(effect: EffectCallback, deps: TDeps, depsEqual: DepsEqualFnType<TDeps>) => void;
253
+ //#endregion
254
+ //#region src/hooks/useCustomCompareMemo.d.ts
221
255
  /**
222
256
  * Like useMemo but uses provided comparator function to validate dependency changes.
223
257
  *
@@ -226,11 +260,12 @@ declare const useCustomCompareEffect: <TDeps extends DependencyList>(effect: Eff
226
260
  * @param comparator function to validate dependency changes
227
261
  * @returns useMemo result
228
262
  */
229
- declare const useCustomCompareMemo: <T, Deps extends DependencyList>(factory: () => T, deps: Deps, comparator: DependenciesComparator<Deps>) => T;
230
-
263
+ export declare const useCustomCompareMemo: <T, Deps extends DependencyList>(factory: () => T, deps: Deps, comparator: DependenciesComparator<Deps>) => T;
264
+ //#endregion
265
+ //#region src/hooks/useDebouncedCallback.d.ts
231
266
  interface UseDebouncedCallbackOptions {
232
- leading?: boolean;
233
- trailing?: boolean;
267
+ leading?: boolean;
268
+ trailing?: boolean;
234
269
  }
235
270
  /**
236
271
  * useDebouncedCallback
@@ -261,10 +296,53 @@ interface UseDebouncedCallbackOptions {
261
296
  * debouncedUpdate.cancel();
262
297
  * ```
263
298
  */
264
- declare function useDebouncedCallback<T extends (...args: any[]) => void>(callback: T, wait: number, options?: UseDebouncedCallbackOptions): T & {
265
- cancel: () => void;
299
+ export declare function useDebouncedCallback<T extends (...args: any[]) => void>(callback: T, wait: number, options?: UseDebouncedCallbackOptions): T & {
300
+ cancel: () => void;
266
301
  };
267
-
302
+ //#endregion
303
+ //#region src/hooks/useDebouncedParams.d.ts
304
+ export interface UseDebouncedParamsOptions {
305
+ /** 마지막 입력 후 발행까지 기다릴 시간(ms). 기본값: 200 */
306
+ delayMs?: number;
307
+ }
308
+ export interface UseDebouncedParamsResult<T> {
309
+ /** 화면에 보여줄 초안 검색 조건. 입력 즉시 갱신된다. */
310
+ params: Partial<T>;
311
+ /** 초안에 부분 변경을 병합하고 발행을 예약한다. */
312
+ onChange: (updated: Partial<T>) => void;
313
+ /** 대기 중인 입력이 있으면 기다리지 않고 바로 발행한다. 없으면 아무 일도 하지 않는다. */
314
+ flush: () => void;
315
+ }
316
+ /**
317
+ * 검색 조건 입력을 초안으로 보관하고, 입력이 멈추면 한 번만 외부로 발행하는 훅.
318
+ *
319
+ * 외부 조건(`params`)이 바뀌면 초안을 외부 값으로 맞춘다. 단, 이 훅이 발행한 값이
320
+ * 부모를 거쳐 돌아온 경우(에코)는 초안을 되돌리지 않는다. 부모의 갱신이 비동기여도
321
+ * 그 사이에 입력한 내용이 사라지지 않는다.
322
+ *
323
+ * @param params - 외부 검색 조건. 깊은 비교로 변경 여부를 판단한다.
324
+ * @param onChange - 디바운스가 끝난 시점에 초안 전체를 전달받는 콜백. 항상 최신 콜백이 호출된다.
325
+ * @param options - `delayMs`: 발행 지연 시간(ms)
326
+ * @returns `params`(초안), `onChange`(입력 핸들러), `flush`(즉시 발행)
327
+ *
328
+ * @remarks
329
+ * - 외부 값이 발행값과 다르게 돌아오면(부모가 값을 보정한 경우 등) 외부 값이 우선하고, 대기 중인 입력은 버린다.
330
+ * - 대기 중에 언마운트하면 입력을 발행하지 않고 버린다.
331
+ *
332
+ * @example
333
+ * ```tsx
334
+ * const { params: draft, onChange, flush } = useDebouncedParams(searchParams, setSearchParams);
335
+ *
336
+ * <TextField
337
+ * value={draft.keyword ?? ''}
338
+ * onChange={(e) => onChange({ keyword: e.target.value })}
339
+ * onKeyDown={(e) => e.key === 'Enter' && flush()}
340
+ * />
341
+ * ```
342
+ */
343
+ export declare function useDebouncedParams<T>(params: Partial<T>, onChange: (params: Partial<T>) => void, options?: UseDebouncedParamsOptions): UseDebouncedParamsResult<T>;
344
+ //#endregion
345
+ //#region src/hooks/useDebouncedState.d.ts
268
346
  /**
269
347
  * 상태 업데이트를 지연시키는 커스텀 훅.
270
348
  * `useState`와 비슷하지만 상태 업데이트를 지연(debounce)시킬 수 있는 React 커스텀 훅입니다.
@@ -292,12 +370,13 @@ declare function useDebouncedCallback<T extends (...args: any[]) => void>(callba
292
370
  * );
293
371
  * ```
294
372
  */
295
- declare function useDebouncedState<T>(defaultValue: T, // 초기 상태 값
296
- wait: number, // 지연 시간 (밀리초)
297
- options?: {
298
- leading: boolean;
299
- }): readonly [T, (newValue: SetStateAction<T>) => void];
300
-
373
+ export declare function useDebouncedState<T>(defaultValue: T // 초기 상태 값
374
+ , wait: number // 지연 시간 (밀리초)
375
+ , options?: {
376
+ leading: boolean;
377
+ }): readonly [T, (next: SetStateAction<T>) => void];
378
+ //#endregion
379
+ //#region src/hooks/useDebouncedValue.d.ts
301
380
  /**
302
381
  * 값의 변화를 지연시키는 커스텀 훅
303
382
  *
@@ -309,21 +388,22 @@ options?: {
309
388
  *
310
389
  * @returns 지연 처리된 값과 타이머를 취소하는 함수.
311
390
  */
312
- declare function useDebouncedValue<T>(
391
+ export declare function useDebouncedValue<T>(
313
392
  /** 지연 처리할 값 */
314
- value: T,
393
+ value: T,
315
394
  /** 지연 시간(밀리초 단위) */
316
- wait: number,
395
+ wait: number,
317
396
  /** 옵션: 첫 업데이트 즉시 처리 여부 */
318
397
  options?: {
319
- leading: boolean;
398
+ leading: boolean;
320
399
  }): readonly [T, () => void];
321
-
400
+ //#endregion
401
+ //#region src/hooks/useDebounceEffect.d.ts
322
402
  interface DebounceOptions$1 {
323
- wait?: number;
324
- leading?: boolean;
325
- trailing?: boolean;
326
- maxWait?: number;
403
+ wait?: number;
404
+ leading?: boolean;
405
+ trailing?: boolean;
406
+ maxWait?: number;
327
407
  }
328
408
  /**
329
409
  * 디바운스 처리된 `effect`를 제공하는 React 커스텀 훅입니다.
@@ -369,13 +449,14 @@ interface DebounceOptions$1 {
369
449
  * @see `useDebounceFn` 디바운스 처리된 함수 생성에 사용됩니다.
370
450
  * @see `useUpdateEffect` 업데이트 시점에 이펙트를 실행하는 데 사용됩니다.
371
451
  */
372
- declare function useDebounceEffect(effect: EffectCallback, deps?: DependencyList, options?: DebounceOptions$1): void;
373
-
452
+ export declare function useDebounceEffect(effect: EffectCallback, deps?: DependencyList, options?: DebounceOptions$1): void;
453
+ //#endregion
454
+ //#region src/hooks/useDebounceFn.d.ts
374
455
  interface DebounceOptions {
375
- wait?: number;
376
- leading?: boolean;
377
- trailing?: boolean;
378
- maxWait?: number;
456
+ wait?: number;
457
+ leading?: boolean;
458
+ trailing?: boolean;
459
+ maxWait?: number;
379
460
  }
380
461
  type noop = (...args: any[]) => any;
381
462
  /**
@@ -413,15 +494,16 @@ type noop = (...args: any[]) => any;
413
494
  * };
414
495
  * ```
415
496
  */
416
- declare function useDebounceFn<T extends noop>(fn: T, options?: DebounceOptions): {
417
- run: ((...args: Parameters<T>) => ReturnType<T>) & {
418
- cancel: () => void;
419
- flush: () => ReturnType<T> | undefined;
420
- };
497
+ export declare function useDebounceFn<T extends noop>(fn: T, options?: DebounceOptions): {
498
+ run: ((...args: Parameters<T>) => ReturnType<T>) & {
421
499
  cancel: () => void;
422
500
  flush: () => ReturnType<T> | undefined;
501
+ };
502
+ cancel: () => void;
503
+ flush: () => ReturnType<T> | undefined;
423
504
  };
424
-
505
+ //#endregion
506
+ //#region src/hooks/useDeepCompareEffect.d.ts
425
507
  /**
426
508
  * 의존성 배열의 깊은 비교(Deep Comparison)를 수행하여 `useEffect`를 실행하는 커스텀 훅입니다.
427
509
  *
@@ -467,8 +549,9 @@ declare function useDebounceFn<T extends noop>(fn: T, options?: DebounceOptions)
467
549
  *
468
550
  * @returns 없음. 이 훅은 `useEffect`와 동일하게 부수 효과를 실행하며, 반환값은 없습니다.
469
551
  */
470
- declare const useDeepCompareEffect: (effect: EffectCallback, deps: DependencyList) => void;
471
-
552
+ export declare const useDeepCompareEffect: (effect: EffectCallback, deps: DependencyList) => void;
553
+ //#endregion
554
+ //#region src/hooks/useDeepCompareMemo.d.ts
472
555
  /**
473
556
  * Like useMemo but validates dependency changes using deep equality check instead of reference check.
474
557
  *
@@ -477,10 +560,12 @@ declare const useDeepCompareEffect: (effect: EffectCallback, deps: DependencyLis
477
560
  * @returns Initially returns the result of calling `factory`. On subsequent renders, it will return
478
561
  * the same value, if dependencies haven't changed, or the result of calling `factory` again, if they have changed.
479
562
  */
480
- declare function useDeepCompareMemo<T, Deps extends DependencyList>(factory: () => T, deps: Deps): T;
481
-
482
- declare function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList): void;
483
-
563
+ export declare function useDeepCompareMemo<T, Deps extends DependencyList>(factory: () => T, deps: Deps): T;
564
+ //#endregion
565
+ //#region src/hooks/useDidUpdate.d.ts
566
+ export declare function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList): void;
567
+ //#endregion
568
+ //#region src/hooks/useEffectOnce.d.ts
484
569
  /**
485
570
  * 컴포넌트가 마운트될 때 한 번만 실행되는 `useEffect`를 구현하기 위한 커스텀 훅입니다.
486
571
  *
@@ -504,8 +589,9 @@ declare function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList)
504
589
  * ```
505
590
  * @returns 없음. `useEffect`와 동일하게 동작하며, 반환값은 없습니다.
506
591
  */
507
- declare const useEffectOnce: (effect: EffectCallback) => void;
508
-
592
+ export declare const useEffectOnce: (effect: EffectCallback) => void;
593
+ //#endregion
594
+ //#region src/hooks/useElementSize.d.ts
509
595
  /**
510
596
  * 요소의 참조(ref)와 해당 요소의 너비(width) 및 높이(height)를 제공하는 커스텀 React 훅.
511
597
  * `useResizeObserver` 훅을 활용하여 요소의 크기를 관찰합니다.
@@ -528,14 +614,16 @@ declare const useEffectOnce: (effect: EffectCallback) => void;
528
614
  * );
529
615
  * ```
530
616
  */
531
- declare function useElementSize<T extends HTMLElement = HTMLElement>(options?: ResizeObserverOptions): {
532
- ref: react.RefObject<T | null>;
533
- width: number;
534
- height: number;
617
+ export declare function useElementSize<T extends HTMLElement = HTMLElement>(options?: ResizeObserverOptions): {
618
+ ref: import("react").RefObject<T | null>;
619
+ width: number;
620
+ height: number;
535
621
  };
536
-
537
- declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLElement>(type: K, listener: (this: T, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): react.RefObject<T | undefined>;
538
-
622
+ //#endregion
623
+ //#region src/hooks/useEventListener.d.ts
624
+ export declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = HTMLElement>(type: K, listener: (this: T, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): import("react").RefObject<T | undefined>;
625
+ //#endregion
626
+ //#region src/hooks/useId.d.ts
539
627
  /**
540
628
  * React 19 네이티브 `useId`를 사용해 안정적인 고유 id를 생성한다.
541
629
  *
@@ -545,8 +633,9 @@ declare function useEventListener<K extends keyof HTMLElementEventMap, T extends
545
633
  * @param staticId 고정 id. string이면 그대로 반환된다.
546
634
  * @returns 고정 id 또는 네이티브 id.
547
635
  */
548
- declare function useId(staticId?: string): string;
549
-
636
+ export declare function useId(staticId?: string): string;
637
+ //#endregion
638
+ //#region src/hooks/useIdle.d.ts
550
639
  /**
551
640
  * 사용자의 비활성 상태를 감지하고, 비활성 여부를 반환하는 커스텀 훅입니다.
552
641
  *
@@ -592,8 +681,9 @@ declare function useId(staticId?: string): string;
592
681
  *
593
682
  * @returns `boolean` 값으로 비활성 상태(`true`) 또는 활성 상태(`false`)를 나타냅니다.
594
683
  */
595
- declare const useIdle: (ms?: number, initialState?: boolean, events?: string[]) => boolean;
596
-
684
+ export declare const useIdle: (ms?: number, initialState?: boolean, events?: string[]) => boolean;
685
+ //#endregion
686
+ //#region src/hooks/useImageLoadCallback.d.ts
597
687
  /**
598
688
  * 이미지 로드 상태를 감지하고 로드 또는 실패 시 콜백을 호출하는 React 훅입니다.
599
689
  *
@@ -626,46 +716,47 @@ declare const useIdle: (ms?: number, initialState?: boolean, events?: string[])
626
716
  * - `keepListening` 설정에 따라 로드 상태를 지속적으로 감시할 수 있습니다.
627
717
  *
628
718
  * @dependencies
629
- * - React: `useEffect`, `useRef`, `useState`
719
+ * - React: `useEffect`, `useState`
630
720
  * - DOM API: `addEventListener`, `removeEventListener`, `MutationObserver`
631
721
  */
632
- declare function useImageLoadCallback(img: HTMLImageElement | null, options: {
633
- keepListening?: boolean;
634
- onLoaded: (img: HTMLImageElement) => void;
635
- onError?: (img: HTMLImageElement, error: unknown) => void;
636
- }, deps?: react__default.DependencyList): void;
637
-
722
+ export declare function useImageLoadCallback(img: HTMLImageElement | null, options: {
723
+ keepListening?: boolean;
724
+ onLoaded: (img: HTMLImageElement) => void;
725
+ onError?: (img: HTMLImageElement, error: unknown) => void;
726
+ }, deps?: React$1.DependencyList): void;
727
+ //#endregion
728
+ //#region src/hooks/useImageUpload.d.ts
638
729
  /**
639
730
  * 파일 업로드의 결과를 나타내는 데이터 구조.
640
731
  *
641
732
  * 파일 업로드가 성공적으로 완료된 후 반환되는 정보를 정의합니다.
642
733
  */
643
- interface FileUploadResult {
644
- /**
645
- * 업로드된 파일의 고유 ID.
646
- * 서버 또는 데이터베이스에서 파일을 식별하는 데 사용됩니다.
647
- */
648
- id: string;
649
- /**
650
- * 업로드된 파일의 URL.
651
- * 업로드된 파일에 접근하거나 다운로드할 수 있는 경로를 제공합니다.
652
- */
653
- url: string;
654
- /**
655
- * 업로드된 파일의 총 크기(바이트 단위).
656
- * 선택적 속성으로, 서버가 파일 크기를 반환하지 않는 경우 undefined일 수 있습니다.
657
- */
658
- totalBytes?: number;
659
- /**
660
- * 업로드된 파일의 이름.
661
- * 파일의 원래 이름 또는 서버에서 생성한 이름일 수 있습니다.
662
- */
663
- fileName?: string;
664
- /**
665
- * 업로드된 파일의 MIME 타입.
666
- * 예: `image/jpeg`, `application/pdf` 등 파일의 유형을 나타냅니다.
667
- */
668
- contentType?: string;
734
+ export interface FileUploadResult {
735
+ /**
736
+ * 업로드된 파일의 고유 ID.
737
+ * 서버 또는 데이터베이스에서 파일을 식별하는 데 사용됩니다.
738
+ */
739
+ id: string;
740
+ /**
741
+ * 업로드된 파일의 URL.
742
+ * 업로드된 파일에 접근하거나 다운로드할 수 있는 경로를 제공합니다.
743
+ */
744
+ url: string;
745
+ /**
746
+ * 업로드된 파일의 총 크기(바이트 단위).
747
+ * 선택적 속성으로, 서버가 파일 크기를 반환하지 않는 경우 undefined일 수 있습니다.
748
+ */
749
+ totalBytes?: number;
750
+ /**
751
+ * 업로드된 파일의 이름.
752
+ * 파일의 원래 이름 또는 서버에서 생성한 이름일 수 있습니다.
753
+ */
754
+ fileName?: string;
755
+ /**
756
+ * 업로드된 파일의 MIME 타입.
757
+ * 예: `image/jpeg`, `application/pdf` 등 파일의 유형을 나타냅니다.
758
+ */
759
+ contentType?: string;
669
760
  }
670
761
  /**
671
762
  * React 커스텀 훅으로 이미지를 업로드하고 업로드 상태를 관리합니다.
@@ -723,11 +814,12 @@ interface FileUploadResult {
723
814
  * }
724
815
  * ```
725
816
  */
726
- declare function useImageUpload(file: Blob | null | undefined, handleFileUpload: (file: Blob) => Promise<FileUploadResult>, callback: (imageUrl: FileUploadResult | null) => void): boolean;
727
-
817
+ export declare function useImageUpload(file: Blob | null | undefined, handleFileUpload: (file: Blob) => Promise<FileUploadResult>, callback: (imageUrl: FileUploadResult | null) => void): boolean;
818
+ //#endregion
819
+ //#region src/hooks/useInterval.d.ts
728
820
  interface UseIntervalOptions {
729
- /** If set, the interval will start automatically when the component is mounted, `false` by default */
730
- autoInvoke?: boolean;
821
+ /** If set, the interval will start automatically when the component is mounted, `false` by default */
822
+ autoInvoke?: boolean;
731
823
  }
732
824
  /**
733
825
  * 특정 작업을 주어진 간격으로 실행할 수 있는 React Hook입니다.
@@ -768,13 +860,14 @@ interface UseIntervalOptions {
768
860
  * - `autoInvoke`가 `true`로 설정되면, 컴포넌트가 마운트될 때 자동으로 interval이 시작됩니다.
769
861
  * - 컴포넌트가 언마운트될 때 interval은 자동으로 정리됩니다.
770
862
  */
771
- declare function useInterval(fn: () => void, interval: number, { autoInvoke }?: UseIntervalOptions): {
772
- start: () => void;
773
- stop: () => void;
774
- toggle: () => void;
775
- active: boolean;
863
+ export declare function useInterval(fn: () => void, interval: number, { autoInvoke }?: UseIntervalOptions): {
864
+ start: () => void;
865
+ stop: () => void;
866
+ toggle: () => void;
867
+ active: boolean;
776
868
  };
777
-
869
+ //#endregion
870
+ //#region src/hooks/useIsomorphicEffect.d.ts
778
871
  /**
779
872
  * 브라우저와 서버 환경 모두에서 안전하게 사용할 수 있는 React 효과 훅.
780
873
  *
@@ -796,20 +889,24 @@ declare function useInterval(fn: () => void, interval: number, { autoInvoke }?:
796
889
  * };
797
890
  * ```
798
891
  */
799
- declare const useIsomorphicEffect: typeof useEffect;
800
-
801
- declare function useLatest<T>(value: T): react.RefObject<T>;
802
-
803
- declare function useLgOrUp(options?: UseMediaQueryOptions): boolean;
804
-
892
+ export declare const useIsomorphicEffect: typeof useEffect;
893
+ //#endregion
894
+ //#region src/hooks/useLatest.d.ts
895
+ export declare function useLatest<T>(value: T): import("react").RefObject<T>;
896
+ //#endregion
897
+ //#region src/hooks/useLgOrUp.d.ts
898
+ export declare function useLgOrUp(options?: UseMediaQueryOptions): boolean;
899
+ //#endregion
900
+ //#region src/hooks/useLifecycleLogger.d.ts
805
901
  /**
806
902
  * This hook provides a console log when the component mounts, updates and unmounts.
807
903
  *
808
904
  * @param componentName Provides the name of the component in which the life cycle is being logged
809
905
  * @param deps Dependencies list, as for `useEffect` hook
810
906
  */
811
- declare function useLifecycleLogger(componentName: string, deps?: DependencyList): void;
812
-
907
+ export declare function useLifecycleLogger(componentName: string, deps?: DependencyList): void;
908
+ //#endregion
909
+ //#region src/hooks/useLoadingVisible.d.ts
813
910
  /**
814
911
  * 로딩 지연 훅
815
912
  * 용도: 예를 들어, 100ms내로 작업이 빠르게 완료되는 경우
@@ -835,83 +932,90 @@ declare function useLifecycleLogger(componentName: string, deps?: DependencyList
835
932
  * 500ms: 로딩중 UI 감춤
836
933
  */
837
934
  interface Options$1 {
838
- minVisibleTime?: number;
839
- postponeTime?: number;
935
+ minVisibleTime?: number;
936
+ postponeTime?: number;
840
937
  }
841
- declare function useLoadingVisible(paramLoading: boolean, opts?: Options$1): boolean;
842
-
938
+ export declare function useLoadingVisible(paramLoading: boolean, opts?: Options$1): boolean;
939
+ //#endregion
940
+ //#region src/hooks/useLocalStorage.d.ts
843
941
  type parserOptions$1<T> = {
844
- raw: true;
942
+ raw: true;
845
943
  } | {
846
- raw: false;
847
- serializer: (value: T) => string;
848
- deserializer: (value: string) => T;
944
+ raw: false;
945
+ serializer: (value: T) => string;
946
+ deserializer: (value: string) => T;
849
947
  };
850
- declare const useLocalStorage: <T>(key: string, initialValue?: T, options?: parserOptions$1<T>) => [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void];
851
-
948
+ export declare const useLocalStorage: <T>(key: string, initialValue?: T, options?: parserOptions$1<T>) => [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void];
949
+ //#endregion
950
+ //#region src/persistence/codec.d.ts
852
951
  /**
853
952
  * A codec that can encode and decode values of type V to and from strings.
854
953
  * @typeParam V The type of values that can be encoded and decoded.
855
954
  */
856
955
  interface Codec<V> {
857
- /**
858
- * Decodes a string value into a value of type V.
859
- * @param value The value to decode.
860
- * @returns The decoded value.
861
- */
862
- parse: (value: string) => V;
863
- /**
864
- * Encodes a value of type V into a string.
865
- * @param value The value to encode.
866
- * @returns The encoded value.
867
- */
868
- stringify: (value: V) => string;
956
+ /**
957
+ * Decodes a string value into a value of type V.
958
+ * @param value The value to decode.
959
+ * @returns The decoded value.
960
+ */
961
+ parse: (value: string) => V;
962
+ /**
963
+ * Encodes a value of type V into a string.
964
+ * @param value The value to encode.
965
+ * @returns The encoded value.
966
+ */
967
+ stringify: (value: V) => string;
869
968
  }
870
-
969
+ //#endregion
970
+ //#region src/persistence/useStorageState.d.ts
871
971
  type StorageStateInitializer<T> = () => T | null;
872
972
  type UseStorageStateHookResult<T> = [T | null, Dispatch<SetStateAction<T | null>>];
873
973
  interface DefaultStorageStateoptions<T = string> {
874
- codec?: Codec<T>;
974
+ codec?: Codec<T>;
875
975
  }
876
976
  interface StorageStateOptions<T> extends DefaultStorageStateoptions<T> {
877
- codec: Codec<T>;
977
+ codec: Codec<T>;
878
978
  }
879
979
  interface UseStorageState {
880
- /**
881
- * Sync state to local or session storage so that it persists through a page refresh. Usage is
882
- * similar to useState except we pass in a storage key that uniquely identifies the value.
883
- * @param key The key to use for storing the value in local or session storage.
884
- * @param initializer The initial value to use if the key is not present in storage.
885
- * @param options Additional options for the storage state.
886
- */
887
- (key: string | null, initializer?: string | null | StorageStateInitializer<string>, options?: DefaultStorageStateoptions): UseStorageStateHookResult<string>;
888
- /**
889
- * Sync state to local or session storage so that it persists through a page refresh. Usage is
890
- * similar to useState except we pass in a storage key that uniquely identifies the value.
891
- * @param key The key to use for storing the value in local or session storage.
892
- * @param initializer The initial value to use if the key is not present in storage.
893
- * @param options Additional options for the storage state.
894
- */
895
- <T>(key: string | null, initializer: T | null | StorageStateInitializer<T>, options: StorageStateOptions<T>): UseStorageStateHookResult<T>;
896
- /**
897
- * Sync state to local or session storage so that it persists through a page refresh. Usage is
898
- * similar to useState except we pass in a storage key that uniquely identifies the value.
899
- * @param key The key to use for storing the value in local or session storage.
900
- * @param initializer The initial value to use if the key is not present in storage.
901
- * @param options Additional options for the storage state.
902
- */
903
- <T>(key: string | null, initializer?: T | null | StorageStateInitializer<T>, options?: StorageStateOptions<T>): UseStorageStateHookResult<T>;
980
+ /**
981
+ * Sync state to local or session storage so that it persists through a page refresh. Usage is
982
+ * similar to useState except we pass in a storage key that uniquely identifies the value.
983
+ * @param key The key to use for storing the value in local or session storage.
984
+ * @param initializer The initial value to use if the key is not present in storage.
985
+ * @param options Additional options for the storage state.
986
+ */
987
+ (key: string | null, initializer?: string | null | StorageStateInitializer<string>, options?: DefaultStorageStateoptions): UseStorageStateHookResult<string>;
988
+ /**
989
+ * Sync state to local or session storage so that it persists through a page refresh. Usage is
990
+ * similar to useState except we pass in a storage key that uniquely identifies the value.
991
+ * @param key The key to use for storing the value in local or session storage.
992
+ * @param initializer The initial value to use if the key is not present in storage.
993
+ * @param options Additional options for the storage state.
994
+ */
995
+ <T>(key: string | null, initializer: T | null | StorageStateInitializer<T>, options: StorageStateOptions<T>): UseStorageStateHookResult<T>;
996
+ /**
997
+ * Sync state to local or session storage so that it persists through a page refresh. Usage is
998
+ * similar to useState except we pass in a storage key that uniquely identifies the value.
999
+ * @param key The key to use for storing the value in local or session storage.
1000
+ * @param initializer The initial value to use if the key is not present in storage.
1001
+ * @param options Additional options for the storage state.
1002
+ */
1003
+ <T>(key: string | null, initializer?: T | null | StorageStateInitializer<T>, options?: StorageStateOptions<T>): UseStorageStateHookResult<T>;
904
1004
  }
905
-
1005
+ //#endregion
1006
+ //#region src/hooks/useLocalStorageState.d.ts
906
1007
  /**
907
1008
  * @deprecated use useLocalStorage()
908
1009
  */
909
- declare const useLocalStorageState: UseStorageState;
910
-
911
- declare function useMdOrDown(options?: UseMediaQueryOptions): boolean;
912
-
913
- declare function useMdOrUp(options?: UseMediaQueryOptions): boolean;
914
-
1010
+ export declare const useLocalStorageState: UseStorageState;
1011
+ //#endregion
1012
+ //#region src/hooks/useMdOrDown.d.ts
1013
+ export declare function useMdOrDown(options?: UseMediaQueryOptions): boolean;
1014
+ //#endregion
1015
+ //#region src/hooks/useMdOrUp.d.ts
1016
+ export declare function useMdOrUp(options?: UseMediaQueryOptions): boolean;
1017
+ //#endregion
1018
+ //#region src/hooks/useMount.d.ts
915
1019
  /**
916
1020
  * 컴포넌트가 마운트될 때 한 번만 실행되는 로직을 처리하기 위한 커스텀 훅입니다.
917
1021
  *
@@ -935,8 +1039,9 @@ declare function useMdOrUp(options?: UseMediaQueryOptions): boolean;
935
1039
  * ```
936
1040
  * @returns 없음. 이 훅은 단지 전달된 콜백 함수를 실행하며 반환값은 없습니다.
937
1041
  */
938
- declare const useMount: (fn: () => void) => void;
939
-
1042
+ export declare const useMount: (fn: () => void) => void;
1043
+ //#endregion
1044
+ //#region src/hooks/useMounted.d.ts
940
1045
  /**
941
1046
  * 컴포넌트가 마운트되었는지 여부를 반환하는 React 훅입니다.
942
1047
  *
@@ -957,8 +1062,9 @@ declare const useMount: (fn: () => void) => void;
957
1062
  * }
958
1063
  * ```
959
1064
  */
960
- declare function useMounted(): boolean;
961
-
1065
+ export declare function useMounted(): boolean;
1066
+ //#endregion
1067
+ //#region src/hooks/useMountedState.d.ts
962
1068
  /**
963
1069
  * 컴포넌트가 마운트 상태인지 여부를 반환하는 커스텀 훅입니다.
964
1070
  *
@@ -993,8 +1099,9 @@ declare function useMounted(): boolean;
993
1099
  * - `useEffect`는 컴포넌트가 마운트되면 `true`, 언마운트되면 `false`로 설정합니다.
994
1100
  * - `useCallback`을 사용하여 `get` 함수가 항상 동일한 참조를 가지도록 보장합니다.
995
1101
  */
996
- declare function useMountedState(): () => boolean;
997
-
1102
+ export declare function useMountedState(): () => boolean;
1103
+ //#endregion
1104
+ //#region src/hooks/useMutationObserver.d.ts
998
1105
  /**
999
1106
  * DOM의 변화를 감지하고 콜백을 실행하는 React 훅
1000
1107
  *
@@ -1019,28 +1126,34 @@ declare function useMountedState(): () => boolean;
1019
1126
  * };
1020
1127
  * ```
1021
1128
  */
1022
- declare function useMutationObserver<T extends HTMLElement = HTMLElement>(callback: MutationCallback, options: MutationObserverInit, target?: HTMLElement | (() => HTMLElement) | null): React.RefObject<T | null>;
1023
-
1129
+ export declare function useMutationObserver<T extends HTMLElement = HTMLElement>(callback: MutationCallback, options: MutationObserverInit, target?: HTMLElement | (() => HTMLElement) | null): React.RefObject<T | null>;
1130
+ //#endregion
1131
+ //#region src/hooks/useObservable.d.ts
1024
1132
  declare function useObservable<T>(observable: null | undefined | Observable<T> | (() => Observable<T>)): T | undefined;
1025
1133
  declare function useObservable<T>(observable: null | undefined | Observable<T> | (() => Observable<T>), initialValue: T): T;
1026
-
1134
+ //#endregion
1135
+ //#region src/hooks/useObservableLocalStorage.d.ts
1027
1136
  type SetStateFn$1<T> = (value: T | undefined) => void;
1028
1137
  type GetFn$1<T> = () => T;
1029
- declare function useObservableLocalStorage<T>(key: string, initialValue: T | GetFn$1<T>): [T, SetStateFn$1<T | null>];
1030
-
1138
+ export declare function useObservableLocalStorage<T>(key: string, initialValue: T | GetFn$1<T>): [T, SetStateFn$1<T | null>];
1139
+ //#endregion
1140
+ //#region src/hooks/useObservableSessionStorage.d.ts
1031
1141
  type SetStateFn<T> = (value: T | undefined) => void;
1032
1142
  type GetFn<T> = () => T;
1033
- declare function useObservableSessionStorage<T>(key: string, initialValue: T | GetFn<T>): [T, SetStateFn<T | null>];
1034
-
1035
- type OS = 'undetermined' | 'macos' | 'ios' | 'windows' | 'android' | 'linux';
1143
+ export declare function useObservableSessionStorage<T>(key: string, initialValue: T | GetFn<T>): [T, SetStateFn<T | null>];
1144
+ //#endregion
1145
+ //#region src/hooks/useOs.d.ts
1146
+ export type OS = 'undetermined' | 'macos' | 'ios' | 'windows' | 'android' | 'linux';
1036
1147
  interface UseOsOptions {
1037
- getValueInEffect: boolean;
1148
+ getValueInEffect: boolean;
1038
1149
  }
1039
- declare function useOs(options?: UseOsOptions): OS;
1040
-
1041
- declare const useRafState: <S>(initialState: S | (() => S)) => [S, Dispatch<SetStateAction<S>>];
1042
-
1043
- type CleanupCallback = () => void;
1150
+ export declare function useOs(options?: UseOsOptions): OS;
1151
+ //#endregion
1152
+ //#region src/hooks/useRafState.d.ts
1153
+ export declare const useRafState: <S>(initialState: S | (() => S)) => [S, Dispatch<SetStateAction<S>>];
1154
+ //#endregion
1155
+ //#region src/hooks/useRefEffect.d.ts
1156
+ export type CleanupCallback = () => void;
1044
1157
  /**
1045
1158
  * DOM ref가 연결되거나 변경될 때 콜백을 실행하고, 이전 요소에 대한 정리 함수를 자동으로 호출하는 훅입니다.
1046
1159
  *
@@ -1062,8 +1175,9 @@ type CleanupCallback = () => void;
1062
1175
  * return <div ref={ref} />;
1063
1176
  * ```
1064
1177
  */
1065
- declare function useRefEffect<RefElement extends HTMLElement = HTMLElement>(callback: (element: RefElement) => CleanupCallback | undefined, deps: DependencyList): (element: RefElement | null) => void;
1066
-
1178
+ export declare function useRefEffect<RefElement extends HTMLElement = HTMLElement>(callback: (element: RefElement) => CleanupCallback | undefined, deps: DependencyList): (element: RefElement | null) => void;
1179
+ //#endregion
1180
+ //#region src/hooks/useResizeObserver.d.ts
1067
1181
  type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
1068
1182
  /**
1069
1183
  * 요소에 대한 `ref`를 제공하고 크기 조정(resize) 이벤트를 관찰하는 커스텀 React 훅.
@@ -1086,19 +1200,21 @@ type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
1086
1200
  * );
1087
1201
  * ```
1088
1202
  */
1089
- declare function useResizeObserver<T extends HTMLElement = HTMLElement>(options?: ResizeObserverOptions): readonly [react.RefObject<T | null>, ObserverRect];
1090
-
1203
+ export declare function useResizeObserver<T extends HTMLElement = HTMLElement>(options?: ResizeObserverOptions): readonly [import("react").RefObject<T | null>, ObserverRect];
1204
+ //#endregion
1205
+ //#region src/hooks/useScript.d.ts
1091
1206
  type LoadingState = 'unknown' | 'loading' | 'ready' | 'error';
1092
- declare function useScript(src: string, options?: {
1093
- removeOnUnmount?: boolean;
1207
+ export declare function useScript(src: string, options?: {
1208
+ removeOnUnmount?: boolean;
1094
1209
  }): LoadingState;
1095
-
1210
+ //#endregion
1211
+ //#region src/hooks/useSessionStorage.d.ts
1096
1212
  type parserOptions<T> = {
1097
- raw: true;
1213
+ raw: true;
1098
1214
  } | {
1099
- raw: false;
1100
- serializer: (value: T) => string;
1101
- deserializer: (value: string) => T;
1215
+ raw: false;
1216
+ serializer: (value: T) => string;
1217
+ deserializer: (value: string) => T;
1102
1218
  };
1103
1219
  /**
1104
1220
  * Persist state in sessionStorage.
@@ -1109,17 +1225,21 @@ type parserOptions<T> = {
1109
1225
  *
1110
1226
  * On SSR/non-browser environments the hook returns `initialValue` and the setter/remove are no-ops.
1111
1227
  */
1112
- declare const useSessionStorage: <T>(key: string, initialValue?: T, options?: parserOptions<T>) => [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void];
1113
-
1228
+ export declare const useSessionStorage: <T>(key: string, initialValue?: T, options?: parserOptions<T>) => [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void];
1229
+ //#endregion
1230
+ //#region src/hooks/useSessionStorageState.d.ts
1114
1231
  /**
1115
1232
  * @deprecated use useSessionStorage()
1116
1233
  */
1117
- declare const useSessionStorageState: UseStorageState;
1118
-
1119
- declare function useSmOrDown(options?: UseMediaQueryOptions): boolean;
1120
-
1121
- declare function useSmOrUp(options?: UseMediaQueryOptions): boolean;
1122
-
1234
+ export declare const useSessionStorageState: UseStorageState;
1235
+ //#endregion
1236
+ //#region src/hooks/useSmOrDown.d.ts
1237
+ export declare function useSmOrDown(options?: UseMediaQueryOptions): boolean;
1238
+ //#endregion
1239
+ //#region src/hooks/useSmOrUp.d.ts
1240
+ export declare function useSmOrUp(options?: UseMediaQueryOptions): boolean;
1241
+ //#endregion
1242
+ //#region src/hooks/useThrottledCallback.d.ts
1123
1243
  /**
1124
1244
  * 주어진 콜백 함수를 지정된 시간 간격(`wait`)으로 호출하도록 제한하는 간단한 쓰로틀링 React 훅.
1125
1245
  *
@@ -1139,9 +1259,10 @@ declare function useSmOrUp(options?: UseMediaQueryOptions): boolean;
1139
1259
  * return <button onClick={throttledClick}>클릭</button>;
1140
1260
  * ```
1141
1261
  */
1142
- declare function useThrottledCallback<T extends (...args: any[]) => any>(callback: T, // 쓰로틀링할 콜백 함수
1143
- wait: number): (...args: Parameters<T>) => void;
1144
-
1262
+ export declare function useThrottledCallback<T extends (...args: any[]) => any>(callback: T // 쓰로틀링할 콜백 함수
1263
+ , wait: number): (...args: Parameters<T>) => void;
1264
+ //#endregion
1265
+ //#region src/hooks/useThrottledCallbackWithClearTimeout.d.ts
1145
1266
  /**
1146
1267
  * 주어진 콜백 함수를 지정된 시간 간격(`wait`)으로 호출하는 커스텀 React 훅.
1147
1268
  *
@@ -1167,9 +1288,10 @@ wait: number): (...args: Parameters<T>) => void;
1167
1288
  * );
1168
1289
  * ```
1169
1290
  */
1170
- declare function useThrottledCallbackWithClearTimeout<T extends (...args: any[]) => any>(callback: T, // 쓰로틀링할 콜백 함수
1171
- wait: number): readonly [(...args: Parameters<T>) => void, () => void];
1172
-
1291
+ export declare function useThrottledCallbackWithClearTimeout<T extends (...args: any[]) => any>(callback: T // 쓰로틀링할 콜백 함수
1292
+ , wait: number): readonly [(...args: Parameters<T>) => void, () => void];
1293
+ //#endregion
1294
+ //#region src/hooks/useThrottledState.d.ts
1173
1295
  /**
1174
1296
  * 쓰로틀링된 상태(state)와 상태를 업데이트하는 함수를 제공하는 React 커스텀 훅.
1175
1297
  *
@@ -1196,9 +1318,10 @@ wait: number): readonly [(...args: Parameters<T>) => void, () => void];
1196
1318
  * );
1197
1319
  * ```
1198
1320
  */
1199
- declare function useThrottledState<T>(defaultValue: T, // 초기 상태 값
1200
- wait: number): readonly [T, (value: react.SetStateAction<T>) => void];
1201
-
1321
+ export declare function useThrottledState<T>(defaultValue: T // 초기 상태 값
1322
+ , wait: number): readonly [T, (value: import("react").SetStateAction<T>) => void];
1323
+ //#endregion
1324
+ //#region src/hooks/useThrottledValue.d.ts
1202
1325
  /**
1203
1326
  * 주어진 값을 쓰로틀링하여 지정된 시간 간격(`wait`) 후에 최신 값을 반환하는 커스텀 React 훅.
1204
1327
  *
@@ -1216,8 +1339,9 @@ wait: number): readonly [T, (value: react.SetStateAction<T>) => void];
1216
1339
  * return <p>쓰로틀링된 값: {throttledValue}</p>;
1217
1340
  * ```
1218
1341
  */
1219
- declare function useThrottledValue<T>(value: T, wait: number): T;
1220
-
1342
+ export declare function useThrottledValue<T>(value: T, wait: number): T;
1343
+ //#endregion
1344
+ //#region src/hooks/useTimeout.d.ts
1221
1345
  /**
1222
1346
  * 특정 작업을 일정 시간 후 실행할 수 있는 타이머 훅
1223
1347
  *
@@ -1245,42 +1369,44 @@ declare function useThrottledValue<T>(value: T, wait: number): T;
1245
1369
  * );
1246
1370
  * ```
1247
1371
  */
1248
- declare function useTimeout(callback: (...callbackParams: unknown[]) => void, // 지연 시간이 지난 후 실행할 함수
1249
- delay: number, // 타이머 지연 시간 (밀리초)
1250
- options?: {
1251
- autoInvoke: boolean;
1372
+ export declare function useTimeout(callback: (...callbackParams: unknown[]) => void // 지연 시간이 지난 후 실행할 함수
1373
+ , delay: number // 타이머 지연 시간 (밀리초)
1374
+ , options?: {
1375
+ autoInvoke: boolean;
1252
1376
  }): {
1253
- start: (...callbackParams: unknown[]) => void;
1254
- clear: () => void;
1377
+ start: (...callbackParams: unknown[]) => void;
1378
+ clear: () => void;
1255
1379
  };
1256
-
1380
+ //#endregion
1381
+ //#region src/hooks/useTimeoutData.d.ts
1257
1382
  /**
1258
1383
  * 시간이 지나면 자동으로 사라지는 데이터
1259
1384
  */
1260
- declare function useTimeoutData<T>(timeoutMs: number): [T | null, (t: T | null) => void];
1261
-
1385
+ export declare function useTimeoutData<T>(timeoutMs: number): [T | null, (t: T | null) => void];
1386
+ //#endregion
1387
+ //#region src/hooks/useUncontrolled.d.ts
1262
1388
  interface UseUncontrolledInput<T> {
1263
- /**
1264
- * 제어 상태 값 (controlled state).
1265
- * 값이 전달되면 해당 값이 항상 반환됩니다.
1266
- */
1267
- value?: T;
1268
- /**
1269
- * 비제어 상태의 초기 값 (uncontrolled state).
1270
- * `value`가 제공되지 않았을 때 사용됩니다.
1271
- */
1272
- defaultValue?: T;
1273
- /**
1274
- * `value`와 `defaultValue`가 모두 제공되지 않을 때 사용되는 최종 기본 값.
1275
- */
1276
- finalValue?: T;
1277
- /**
1278
- * 제어 상태 변화 시 호출되는 콜백 함수.
1279
- *
1280
- * @param value - 변경된 값
1281
- * @param payload - 추가 데이터
1282
- */
1283
- onChange?: (value: T, ...payload: unknown[]) => void;
1389
+ /**
1390
+ * 제어 상태 값 (controlled state).
1391
+ * 값이 전달되면 해당 값이 항상 반환됩니다.
1392
+ */
1393
+ value?: T;
1394
+ /**
1395
+ * 비제어 상태의 초기 값 (uncontrolled state).
1396
+ * `value`가 제공되지 않았을 때 사용됩니다.
1397
+ */
1398
+ defaultValue?: T;
1399
+ /**
1400
+ * `value`와 `defaultValue`가 모두 제공되지 않을 때 사용되는 최종 기본 값.
1401
+ */
1402
+ finalValue?: T;
1403
+ /**
1404
+ * 제어 상태 변화 시 호출되는 콜백 함수.
1405
+ *
1406
+ * @param value - 변경된 값
1407
+ * @param payload - 추가 데이터
1408
+ */
1409
+ onChange?: (value: T, ...payload: unknown[]) => void;
1284
1410
  }
1285
1411
  /**
1286
1412
  * 제어 상태와 비제어 상태를 동시에 지원하는 React 훅.
@@ -1302,16 +1428,21 @@ interface UseUncontrolledInput<T> {
1302
1428
  * });
1303
1429
  * ```
1304
1430
  */
1305
- declare function useUncontrolled<T>({ value, defaultValue, finalValue, onChange, }: UseUncontrolledInput<T>): [T, (value: T, ...payload: unknown[]) => void, boolean];
1306
-
1307
- declare const useUnmount: (fn: () => void) => void;
1308
-
1309
- declare const useUpdate: () => () => void;
1310
-
1311
- declare const useUpdateEffect: (effect: EffectCallback, deps?: DependencyList) => void;
1312
-
1313
- declare const useUpdateLayoutEffect: (effect: EffectCallback, deps?: DependencyList) => void;
1314
-
1431
+ export declare function useUncontrolled<T>({ value, defaultValue, finalValue, onChange }: UseUncontrolledInput<T>): [T, (value: T, ...payload: unknown[]) => void, boolean];
1432
+ //#endregion
1433
+ //#region src/hooks/useUnmount.d.ts
1434
+ export declare const useUnmount: (fn: () => void) => void;
1435
+ //#endregion
1436
+ //#region src/hooks/useUpdate.d.ts
1437
+ export declare const useUpdate: () => () => void;
1438
+ //#endregion
1439
+ //#region src/hooks/useUpdateEffect.d.ts
1440
+ export declare const useUpdateEffect: (effect: EffectCallback, deps?: DependencyList) => void;
1441
+ //#endregion
1442
+ //#region src/hooks/useUpdateLayoutEffect.d.ts
1443
+ export declare const useUpdateLayoutEffect: (effect: EffectCallback, deps?: DependencyList) => void;
1444
+ //#endregion
1445
+ //#region src/hooks/useWindowEvent.d.ts
1315
1446
  /**
1316
1447
  * 지정된 타입의 윈도우 이벤트를 등록하고 관리하는 React 커스텀 훅.
1317
1448
  *
@@ -1330,20 +1461,23 @@ declare const useUpdateLayoutEffect: (effect: EffectCallback, deps?: DependencyL
1330
1461
  * });
1331
1462
  * ```
1332
1463
  */
1333
- declare function useWindowEvent<K extends string>(type: K, // 등록할 윈도우 이벤트의 타입
1334
- listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void, // 사용자 정의 이벤트 리스너
1335
- options?: boolean | AddEventListenerOptions): void;
1336
-
1464
+ export declare function useWindowEvent<K extends string>(type: K // 등록할 윈도우 이벤트의 타입
1465
+ , listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void // 사용자 정의 이벤트 리스너
1466
+ , options?: boolean | AddEventListenerOptions): void;
1467
+ //#endregion
1468
+ //#region src/hooks/useWindowSize.d.ts
1337
1469
  interface Options {
1338
- initialWidth?: number;
1339
- initialHeight?: number;
1340
- onChange?: (width: number, height: number) => void;
1470
+ initialWidth?: number;
1471
+ initialHeight?: number;
1472
+ onChange?: (width: number, height: number) => void;
1341
1473
  }
1342
- declare const useWindowSize: ({ initialWidth, initialHeight, onChange, }?: Options) => {
1343
- width: number;
1344
- height: number;
1474
+ export declare const useWindowSize: ({ initialWidth, initialHeight, onChange }?: Options) => {
1475
+ width: number;
1476
+ height: number;
1345
1477
  };
1346
-
1347
- declare function useXsOrDown(options?: UseMediaQueryOptions): boolean;
1348
-
1349
- export { type CleanupCallback, type FileUploadResult, type OS, composeRefs, useAbsolutePosition, useAudioUnlocked, useBehaviorSubject, useCallbackRef, useCenterInView, useClipboard, useClosableEffect, useComposedRefs, useConstant, useCustomCompareEffect, useCustomCompareMemo, useDebounceEffect, useDebounceFn, useDebouncedCallback, useDebouncedState, useDebouncedValue, useDeepCompareEffect, useDeepCompareMemo, useDidUpdate, useEffectOnce, useElementSize, useEventListener, useId, useIdle, useImageLoadCallback, useImageUpload, useInterval, useIsomorphicEffect, useLatest, useLgOrUp, useLifecycleLogger, useLoadingVisible, useLocalStorage, useLocalStorageState, useMdOrDown, useMdOrUp, useMount, useMounted, useMountedState, useMutationObserver, useObservable, useObservableLocalStorage, useObservableSessionStorage, useOs, useRafState, useRefEffect, useResizeObserver, useScript, useSessionStorage, useSessionStorageState, useSmOrDown, useSmOrUp, useThrottledCallback, useThrottledCallbackWithClearTimeout, useThrottledState, useThrottledValue, useTimeout, useTimeoutData, useUncontrolled, useUnmount, useUpdate, useUpdateEffect, useUpdateLayoutEffect, useWindowEvent, useWindowSize, useXsOrDown };
1478
+ //#endregion
1479
+ //#region src/hooks/useXsOrDown.d.ts
1480
+ export declare function useXsOrDown(options?: UseMediaQueryOptions): boolean;
1481
+ //#endregion
1482
+ export { composeRefs, useComposedRefs, useObservable };
1483
+ //# sourceMappingURL=index.d.ts.map