@autoai-ui/autoui 0.2.2 → 0.2.4
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/autoui.css +1 -0
- package/dist/index.cjs +286 -40
- package/dist/index.mjs +3947 -2628
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/plugin.d.ts +2 -0
- package/dist/plugin.cjs +4 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.mjs +428 -0
- package/package.json +14 -3
- package/dist/lib/bin/index.d.ts +0 -1
- package/dist/lib/components/chat/context/chatContext.d.ts +0 -3
- package/dist/lib/components/chat/context/modalChatContext.d.ts +0 -9
- package/dist/lib/components/chat/hooks/useAutoUiChat.d.ts +0 -4
- package/dist/lib/components/chat/hooks/useChat.d.ts +0 -3
- package/dist/lib/components/chat/hooks/useChatState.d.ts +0 -7
- package/dist/lib/components/chat/hooks/useRendering.d.ts +0 -7
- package/dist/lib/components/chat/hooks/useSpeechToText.d.ts +0 -9
- package/dist/lib/components/chat/hooks/useTheme.d.ts +0 -6
- package/dist/lib/components/chat/index.d.ts +0 -2
- package/dist/lib/components/chat/types/index.d.ts +0 -114
- package/dist/lib/components/chat/ui/Chat.d.ts +0 -3
- package/dist/lib/components/chat/ui/ChatHeader.d.ts +0 -1
- package/dist/lib/components/chat/ui/ChatInput.d.ts +0 -4
- package/dist/lib/components/chat/ui/ChatMenu.d.ts +0 -1
- package/dist/lib/components/chat/ui/ChatMessageList.d.ts +0 -3
- package/dist/lib/components/chat/ui/ChatMessageListItem.d.ts +0 -6
- package/dist/lib/components/chat/ui/ChatTextBox.d.ts +0 -5
- package/dist/lib/components/chat/ui/MicButton.d.ts +0 -4
- package/dist/lib/components/chat/ui/ModalChat.d.ts +0 -2
- package/dist/lib/components/chat/ui/ScrollToBottomButton.d.ts +0 -7
- package/dist/lib/components/chat/ui/SendButton.d.ts +0 -1
- package/dist/lib/components/chat/ui/btnOpenChat/index.d.ts +0 -3
- package/dist/lib/components/index.d.ts +0 -2
- package/dist/lib/components/menu/index.d.ts +0 -1
- package/dist/lib/components/menu/ui/Menu.d.ts +0 -6
- package/dist/lib/components/menu/ui/MenuItem.d.ts +0 -16
- package/dist/lib/components/menu/ui/MenuSelectedIcon.d.ts +0 -4
- package/dist/lib/components/popover/index.d.ts +0 -2
- package/dist/lib/components/popover/ui/Popover.d.ts +0 -10
- package/dist/lib/components/popover/ui/PopoverMenu.d.ts +0 -10
- package/dist/lib/components/spinner/index.d.ts +0 -1
- package/dist/lib/components/spinner/ui/Spinner.d.ts +0 -16
- package/dist/lib/components/switch/index.d.ts +0 -1
- package/dist/lib/components/switch/ui/Switch.d.ts +0 -30
- package/dist/lib/core/buildDataAnalyzingPrompt.d.ts +0 -3
- package/dist/lib/core/buildIntentPrompt.d.ts +0 -2
- package/dist/lib/core/extraDataAnalyzingWithLLM.d.ts +0 -3
- package/dist/lib/core/index.d.ts +0 -1
- package/dist/lib/core/llmClient.d.ts +0 -3
- package/dist/lib/core/sseParser.d.ts +0 -1
- package/dist/lib/runtime/index.d.ts +0 -1
- package/dist/lib/runtime/rerenderChatFromHistory.d.ts +0 -3
- package/dist/lib/runtime/runtimeEngine.d.ts +0 -9
- package/dist/lib/runtime/stepExecutor.d.ts +0 -7
- package/dist/lib/types/index.d.ts +0 -79
- package/dist/lib/types/llmTypes.d.ts +0 -21
- package/dist/lib/utils/clsx.d.ts +0 -1
- package/dist/lib/utils/debounce.d.ts +0 -11
- package/dist/lib/utils/index.d.ts +0 -1
- package/dist/lib/utils/resolveProps.d.ts +0 -2
- package/dist/stats.html +0 -4949
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { AutoUIConfig } from '../../../types';
|
|
2
|
-
import { ComponentType, ReactNode, default as React } from 'react';
|
|
3
|
-
import { ThemeMode } from '../hooks/useTheme';
|
|
4
|
-
export type BtnOpenChatProps = {
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
onOpenChange?: () => void;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface ModalChatContextValue {
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ModalChatContext {
|
|
13
|
-
value: ModalChatContextValue;
|
|
14
|
-
setValue: React.Dispatch<React.SetStateAction<ModalChatContextValue>>;
|
|
15
|
-
config: AutoUIConfig;
|
|
16
|
-
}
|
|
17
|
-
export interface ChatMessage {
|
|
18
|
-
id: string;
|
|
19
|
-
role: 'user' | 'assistant' | 'system';
|
|
20
|
-
content: string | ReactNode | ComponentType<any>;
|
|
21
|
-
}
|
|
22
|
-
interface ChatClassNames {
|
|
23
|
-
header?: string;
|
|
24
|
-
body?: string;
|
|
25
|
-
footer?: string;
|
|
26
|
-
title?: string;
|
|
27
|
-
closeButton?: string;
|
|
28
|
-
base?: string;
|
|
29
|
-
inputWrapper?: string;
|
|
30
|
-
input?: string;
|
|
31
|
-
inputButton?: string;
|
|
32
|
-
messageList?: string;
|
|
33
|
-
message?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface ChatProviderPropsType {
|
|
36
|
-
children: ReactNode;
|
|
37
|
-
value: ChatContextType;
|
|
38
|
-
config: AutoUIConfig;
|
|
39
|
-
}
|
|
40
|
-
export interface ChatContextType {
|
|
41
|
-
config: AutoUIConfig;
|
|
42
|
-
isOpen?: boolean;
|
|
43
|
-
title?: string;
|
|
44
|
-
classNames?: ChatClassNames;
|
|
45
|
-
messages: ChatMessage[] | undefined;
|
|
46
|
-
isLoading: boolean;
|
|
47
|
-
closeIcon?: any;
|
|
48
|
-
mode?: ThemeMode;
|
|
49
|
-
theme?: 'light' | 'dark';
|
|
50
|
-
setTheme?: (newMode: ThemeMode) => void;
|
|
51
|
-
handleSend: (text: string) => Promise<void>;
|
|
52
|
-
handleClear: () => void;
|
|
53
|
-
getChatInputProps: () => {
|
|
54
|
-
onSend: (text: string) => Promise<void>;
|
|
55
|
-
disabled: boolean;
|
|
56
|
-
};
|
|
57
|
-
getChatHeaderProps: () => {
|
|
58
|
-
title: string;
|
|
59
|
-
onClose?: () => void;
|
|
60
|
-
};
|
|
61
|
-
getMessageListProps: () => {
|
|
62
|
-
messages: ChatMessage[] | undefined;
|
|
63
|
-
};
|
|
64
|
-
onClose?: () => void;
|
|
65
|
-
}
|
|
66
|
-
export interface ChatMessageListProps {
|
|
67
|
-
}
|
|
68
|
-
export interface ChatProps {
|
|
69
|
-
mode?: ThemeMode;
|
|
70
|
-
theme?: 'light' | 'dark';
|
|
71
|
-
config: AutoUIConfig;
|
|
72
|
-
title?: string;
|
|
73
|
-
isOpen?: boolean;
|
|
74
|
-
storageKey?: string;
|
|
75
|
-
closeIcon?: any;
|
|
76
|
-
classNames?: ChatClassNames;
|
|
77
|
-
setTheme?: (newMode: ThemeMode) => void;
|
|
78
|
-
onError?: (err: Error) => void;
|
|
79
|
-
onClose?: () => void;
|
|
80
|
-
}
|
|
81
|
-
export type ModalChatProps = {
|
|
82
|
-
config: AutoUIConfig;
|
|
83
|
-
portalContainer?: HTMLElement;
|
|
84
|
-
} & ChatProps;
|
|
85
|
-
export type ActionRef = {
|
|
86
|
-
__action: string;
|
|
87
|
-
args?: Record<string, unknown>;
|
|
88
|
-
};
|
|
89
|
-
export type UiNode = {
|
|
90
|
-
t: 'text';
|
|
91
|
-
text: string;
|
|
92
|
-
} | {
|
|
93
|
-
t: 'component';
|
|
94
|
-
name: string;
|
|
95
|
-
props?: Record<string, unknown>;
|
|
96
|
-
children?: UiNode[];
|
|
97
|
-
} | {
|
|
98
|
-
t: 'fragment';
|
|
99
|
-
children?: UiNode[];
|
|
100
|
-
};
|
|
101
|
-
export type SerializedMessage = {
|
|
102
|
-
id: string;
|
|
103
|
-
role: 'assistant' | 'user';
|
|
104
|
-
kind: 'text';
|
|
105
|
-
text: string;
|
|
106
|
-
ts?: number;
|
|
107
|
-
} | {
|
|
108
|
-
id: string;
|
|
109
|
-
role: 'assistant';
|
|
110
|
-
kind: 'ui';
|
|
111
|
-
ui: UiNode;
|
|
112
|
-
ts?: number;
|
|
113
|
-
};
|
|
114
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ChatHeader: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ChatMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SendButton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Menu } from './ui/Menu';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MenuItemType } from './MenuItem';
|
|
2
|
-
export declare const Menu: ({ items, defaultSelectedKey, onSelectionChange, }: {
|
|
3
|
-
items: MenuItemType[];
|
|
4
|
-
defaultSelectedKey?: string;
|
|
5
|
-
onSelectionChange?: (key: string) => void;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface MenuItemType {
|
|
3
|
-
key: string;
|
|
4
|
-
label: any;
|
|
5
|
-
description?: string;
|
|
6
|
-
shortcut?: string;
|
|
7
|
-
startContent?: React.ReactNode;
|
|
8
|
-
endContent?: React.ReactNode;
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
onSelect?: () => void;
|
|
12
|
-
disableAnimation?: boolean;
|
|
13
|
-
hideSelectedIcon?: boolean;
|
|
14
|
-
selectedIcon?: React.ReactNode | ((args: any) => React.ReactNode);
|
|
15
|
-
}
|
|
16
|
-
export declare const MenuItem: FC<MenuItemType>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type PopoverPosition = 'top-center' | 'bottom-left' | 'bottom-right';
|
|
2
|
-
export declare const Popover: ({ isOpen, onClose, triggerRef, children, styles, position, }: {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
styles?: React.CSSProperties;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
triggerRef: React.RefObject<HTMLElement | null>;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
position?: PopoverPosition;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MenuItemType } from '../../menu/ui/MenuItem';
|
|
3
|
-
export declare const PopoverMenu: ({ items, button, popoverStyles, defaultSelectedKey, closeAfterSelect, onSelectionChange, }: {
|
|
4
|
-
popoverStyles?: React.CSSProperties;
|
|
5
|
-
items: MenuItemType[];
|
|
6
|
-
closeAfterSelect?: (key: string) => boolean;
|
|
7
|
-
button: React.ReactElement<any>;
|
|
8
|
-
defaultSelectedKey?: string;
|
|
9
|
-
onSelectionChange?: (key: string) => void;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Spinner } from './ui/Spinner';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
variant?: 'default' | 'simple' | 'wave' | 'dots' | 'spinner';
|
|
4
|
-
label?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
classNames?: {
|
|
7
|
-
base?: string;
|
|
8
|
-
wrapper?: string;
|
|
9
|
-
dots?: string;
|
|
10
|
-
spinnerBars?: string;
|
|
11
|
-
circle1?: string;
|
|
12
|
-
circle2?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch } from './ui/Switch';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export type SwitchProps = {
|
|
4
|
-
'checked'?: boolean;
|
|
5
|
-
'defaultChecked'?: boolean;
|
|
6
|
-
'onCheckedChange'?: (checked: boolean, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
'disabled'?: boolean;
|
|
8
|
-
'required'?: boolean;
|
|
9
|
-
'name'?: string;
|
|
10
|
-
'value'?: string;
|
|
11
|
-
'id'?: string;
|
|
12
|
-
'label'?: React.ReactNode;
|
|
13
|
-
'description'?: React.ReactNode;
|
|
14
|
-
'size'?: SwitchSize;
|
|
15
|
-
'className'?: string;
|
|
16
|
-
'trackClassName'?: string;
|
|
17
|
-
'thumbClassName'?: string;
|
|
18
|
-
'labelClassName'?: string;
|
|
19
|
-
'startContent'?: React.ReactNode;
|
|
20
|
-
'endContent'?: React.ReactNode;
|
|
21
|
-
'thumb'?: (ctx: {
|
|
22
|
-
checked: boolean;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
size: SwitchSize;
|
|
25
|
-
}) => React.ReactNode;
|
|
26
|
-
'aria-label'?: string;
|
|
27
|
-
'aria-labelledby'?: string;
|
|
28
|
-
};
|
|
29
|
-
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
-
export {};
|
package/dist/lib/core/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseInstructionPlanFromSSE(stream: ReadableStream<Uint8Array>): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, SerializedMessage } from '../components/chat/types';
|
|
2
|
-
import { ResolveComponent, SetUI } from './stepExecutor';
|
|
3
|
-
export declare const rerenderChatFromHistory: (chatHistory: SerializedMessage[], resolveComponent: ResolveComponent, setUI: SetUI) => ChatMessage[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AutoUIConfig } from '../types';
|
|
2
|
-
import { InstructionPlan } from '../types/llmTypes';
|
|
3
|
-
import { ResolveComponent, SetUI } from './stepExecutor';
|
|
4
|
-
import { SerializedMessage } from '../components/chat/types';
|
|
5
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
6
|
-
export type RunOptions = {
|
|
7
|
-
validate?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function runInstructionPlan(plan: InstructionPlan, config: AutoUIConfig, resolveComponent: ResolveComponent, setUI: SetUI, setSerializedMessages: Dispatch<SetStateAction<SerializedMessage[]>>, userMessage: string, opts?: RunOptions): Promise<Record<string, any>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InstructionPlan } from '../types/llmTypes';
|
|
2
|
-
import { AutoUIConfig } from '../types';
|
|
3
|
-
import { SerializedMessage } from '../components/chat/types';
|
|
4
|
-
import { Dispatch, SetStateAction, default as React } from 'react';
|
|
5
|
-
export type ResolveComponent = (name: string, props: any) => React.ReactNode;
|
|
6
|
-
export type SetUI = (ui: React.ReactNode | string) => void;
|
|
7
|
-
export declare function executePlanSteps(plan: InstructionPlan, config: AutoUIConfig, resolveComponent: ResolveComponent, setUI: SetUI, setSerializedMessages: Dispatch<SetStateAction<SerializedMessage[]>>, userMessage: string): Promise<Record<string, any>>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
export interface AutoUIConfig {
|
|
3
|
-
appId: string;
|
|
4
|
-
llm: LLMConfig;
|
|
5
|
-
runtime: RuntimeConfig;
|
|
6
|
-
functions: Record<string, AutoUIFunction>;
|
|
7
|
-
components: Record<string, AutoUIComponent>;
|
|
8
|
-
metadata?: AutoUIMetadata;
|
|
9
|
-
}
|
|
10
|
-
export interface LLMConfig {
|
|
11
|
-
/** 🔐 Backend proxy URL */
|
|
12
|
-
proxyUrl: string;
|
|
13
|
-
/** Shared secret for proxy auth */
|
|
14
|
-
sharedSecret?: string;
|
|
15
|
-
/** Sampling temperature (hint only) */
|
|
16
|
-
temperature?: number;
|
|
17
|
-
/** Max tokens (hint only) */
|
|
18
|
-
maxTokens?: number;
|
|
19
|
-
/** App description context */
|
|
20
|
-
appDescriptionPrompt?: string;
|
|
21
|
-
/** Optional headers forwarded to proxy */
|
|
22
|
-
requestHeaders?: Record<string, string>;
|
|
23
|
-
}
|
|
24
|
-
export interface RuntimeConfig {
|
|
25
|
-
/** Whether to validate LLM JSON output */
|
|
26
|
-
validateLLMOutput?: boolean;
|
|
27
|
-
/** Whether to store chat history to localStorage */
|
|
28
|
-
storeChatToLocalStorage?: boolean;
|
|
29
|
-
/** Key used for saving chat history */
|
|
30
|
-
localStorageKey?: string;
|
|
31
|
-
/** Enable internal debug logging */
|
|
32
|
-
enableDebugLogs?: boolean;
|
|
33
|
-
/** Maximum instruction steps allowed */
|
|
34
|
-
maxSteps?: number;
|
|
35
|
-
/** Error-handling policy */
|
|
36
|
-
errorHandling?: {
|
|
37
|
-
showToUser?: boolean;
|
|
38
|
-
retryOnFail?: boolean;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface AutoUIFunction {
|
|
42
|
-
/** Prompt used by the LLM to decide when/how to call this function */
|
|
43
|
-
prompt: string;
|
|
44
|
-
/** Descriptive list of parameters (for documentation & LLM guidance) */
|
|
45
|
-
params?: Record<string, string>;
|
|
46
|
-
/** Description of the expected return type */
|
|
47
|
-
returns?: string;
|
|
48
|
-
/** The actual callable implementation (may be mocked) */
|
|
49
|
-
callFunc: Function;
|
|
50
|
-
/** Optional example usage or notes for LLM context */
|
|
51
|
-
exampleUsage?: string;
|
|
52
|
-
/** Optional tags for organization */
|
|
53
|
-
tags?: string[];
|
|
54
|
-
canShareDataWithLLM?: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface AutoUIComponent {
|
|
57
|
-
/** Prompt describing what the component does (for LLM) */
|
|
58
|
-
prompt: string;
|
|
59
|
-
/** Human-readable parameter descriptions */
|
|
60
|
-
props?: Record<string, string>;
|
|
61
|
-
/** Actual React component reference */
|
|
62
|
-
callComponent: ComponentType<any>;
|
|
63
|
-
/** Default prop values for runtime or mock previews */
|
|
64
|
-
defaults?: Record<string, any>;
|
|
65
|
-
/** Example JSX usage (string literal for docs) */
|
|
66
|
-
exampleUsage?: string;
|
|
67
|
-
/** Optional category (product-display, checkout, etc.) */
|
|
68
|
-
category?: string;
|
|
69
|
-
/** Optional tags for search or grouping */
|
|
70
|
-
tags?: string[];
|
|
71
|
-
}
|
|
72
|
-
export interface AutoUIMetadata {
|
|
73
|
-
appName: string;
|
|
74
|
-
appVersion?: string;
|
|
75
|
-
author?: string;
|
|
76
|
-
createdAt?: string;
|
|
77
|
-
description?: string;
|
|
78
|
-
tags?: string[];
|
|
79
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type FunctionStep = {
|
|
2
|
-
type: 'function';
|
|
3
|
-
name: string;
|
|
4
|
-
params?: Record<string, any>;
|
|
5
|
-
assign?: string;
|
|
6
|
-
hasToShareDataWithLLM?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type ComponentStep = {
|
|
9
|
-
type: 'component';
|
|
10
|
-
name: string;
|
|
11
|
-
props?: Record<string, any>;
|
|
12
|
-
};
|
|
13
|
-
export type TextStep = {
|
|
14
|
-
type: 'text';
|
|
15
|
-
text: string;
|
|
16
|
-
};
|
|
17
|
-
export type InstructionStep = FunctionStep | ComponentStep | TextStep;
|
|
18
|
-
export type InstructionPlan = {
|
|
19
|
-
type: 'sequence';
|
|
20
|
-
steps: InstructionStep[];
|
|
21
|
-
};
|
package/dist/lib/utils/clsx.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function clsx(...classes: any[]): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface DebounceOptions {
|
|
2
|
-
leading?: boolean;
|
|
3
|
-
maxWait?: number;
|
|
4
|
-
trailing?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface DebouncedFunc<T extends (...args: any[]) => any> {
|
|
7
|
-
(...args: Parameters<T>): ReturnType<T> | undefined;
|
|
8
|
-
cancel: () => void;
|
|
9
|
-
flush: () => ReturnType<T> | undefined;
|
|
10
|
-
}
|
|
11
|
-
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, options?: DebounceOptions): DebouncedFunc<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|