@playbooks/hooks
Version:
A collection of React hooks for Playbooks.
81 lines (77 loc) • 3.62 kB
TypeScript
// Generated by dts-bundle-generator v9.5.1
import React$1 from 'react';
export type HooksContextProps = {
toast?: any;
};
export declare const HooksContext: React$1.Context<HooksContextProps>;
export declare const HooksProvider: ({ contexts, children }: {
contexts: any;
children: any;
}) => import("react/jsx-runtime").JSX.Element;
export declare const useHooks: () => HooksContextProps;
export declare const useElementKeyDown: (element: any, method: any, listeners: any) => void;
export declare const useElementMouseMenu: (element: any, method: any, listeners: any) => void;
export declare const useElementMouseEnter: (element: any, method: any, listeners: any) => void;
export declare const useElementMouseLeave: (element: any, method: any, listeners: any) => void;
export declare const useElementResize: (element: any, method: any, listeners: any) => void;
export declare const useElementObserver: (element: any, listeners: any) => any;
export declare const useElementHeight: (element: any, method: any, listeners: any) => void;
export declare const useElementWidth: (element: any, method: any, listeners: any) => void;
export declare const useKeyDown: (method: any, listeners: any) => void;
export declare const useKeyUp: (method: any, listeners: any) => void;
export declare const useMouseDown: (method: any, listeners: any) => void;
export declare const useMouseEnter: (method: any, listeners: any) => void;
export declare const useMouseLeave: (method: any, listeners: any) => void;
export declare const useMouseUp: (method: any, listeners: any) => void;
export declare const useMouseMenu: (method: any, listeners: any) => void;
export declare const useNavigationStart: (router: any, method: any) => boolean;
export declare const useNavigationComplete: (router: any, method: any) => boolean;
export declare const useNavigationError: (router: any, method: any) => boolean;
export declare const useInit: (method: any) => [
method: any,
loading: boolean,
error: any
];
export declare const useQuery: (method: any) => [
method: any,
loading: boolean,
error: any
];
export declare const useAction: (model: any, method: any) => [
method: any,
task: any,
error: any
];
export declare const useConfirm: (model: any, message: any, method: any) => [
method: any,
task: any,
error: any
];
export declare const useSave: (model: any, modelName: any, method: any) => [
method: any,
task: any,
error: any
];
export declare const useDelete: (model: any, modelName: any, method: any) => [
method: any,
task: any,
error: any
];
export declare const useDeletes: (model: any, modelName: any, method: any) => [
method: any,
task: any,
error: any
];
export declare const useDebounce: (value: any, delay: any) => any;
export declare const useDelay: (method: any, listeners?: any[]) => boolean;
export declare const useFocus: (listeners?: any[]) => import("react").MutableRefObject<any>;
export declare const useInterval: (method: any, listeners?: any[]) => void;
export declare const useLoaded: (method?: any, listeners?: any[]) => boolean;
export declare const useMounted: (method: any, listeners?: any[]) => boolean;
export declare const useLocalStorage: (method: any, listeners: any) => void;
export declare const useOffline: (method: any, listeners: any) => void;
export declare const useOnline: (method: any, listeners: any) => void;
export declare const useResize: (method: any, listeners: any) => void;
export declare const useResizeTarget: (element: any, method: any, listeners: any) => void;
export declare const useCount: (props: any) => import("react-countup/build/types").CountUpApi;
export {};