@fluster.io/dev
Version:
24 lines (23 loc) • 956 B
TypeScript
import { ReactNode } from 'react';
export interface MdxImageState {
imgIds: string[];
haveSetImages: boolean;
}
export declare const MdxImageContext: import('react').Context<MdxImageState>;
type MdxImageContextActions = {
type: "setImageIdList";
payload: string[];
};
export declare const MdxImageDispatchContext: import('react').Context<import('react').Dispatch<MdxImageContextActions>>;
export declare const useMdxImageContext: () => MdxImageState;
export declare const useMdxImageDispatch: () => import('react').Dispatch<MdxImageContextActions>;
export declare const MdxImageContextReducer: {
(state: MdxImageState, action: MdxImageContextActions): MdxImageState;
displayName: string;
};
interface MdxImageProviderProps {
children: ReactNode;
initialValues?: Partial<MdxImageState>;
}
export declare const MdxImageProvider: ({ children, initialValues, }: MdxImageProviderProps) => import("react").JSX.Element;
export {};