mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
41 lines (40 loc) • 1.69 kB
TypeScript
/// <reference types="react" />
export interface PromptState {
debugData: any;
}
export interface DebugObjectStore extends PromptState {
setItem: (key: string, data: any) => void;
}
export declare const DebugObjectService: {
ready: boolean;
count: {
builtin: number;
};
init(builtinPrompts: any): void;
};
declare const createDebugStore: (initProps?: Partial<PromptState>) => import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<DebugObjectStore>, "persist"> & {
persist: {
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<DebugObjectStore, DebugObjectStore>>) => void;
clearStorage: () => void;
rehydrate: () => void | Promise<void>;
hasHydrated: () => boolean;
onHydrate: (fn: (state: DebugObjectStore) => void) => () => void;
onFinishHydration: (fn: (state: DebugObjectStore) => void) => () => void;
getOptions: () => Partial<import("zustand/middleware").PersistOptions<DebugObjectStore, DebugObjectStore>>;
};
}>;
type BearProviderProps = React.PropsWithChildren<Partial<PromptState>>;
export declare function DebugProvider({ children, ...props }: BearProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useDebugStore<T>(): ReturnType<typeof createDebugStore>;
export declare function useDebugStore<T>(selector: (state: DebugObjectStore) => T): T;
export declare const DebugObject: ({ id, data }: {
id: string;
data: any;
}) => import("react/jsx-runtime").JSX.Element;
/**
* 调试浮动按钮
* @param param0
* @returns
*/
export declare const DebugFab: () => import("react/jsx-runtime").JSX.Element;
export {};