UNPKG

@query-api/react

Version:
23 lines 866 B
import { ReactNode } from 'react'; import { CraftOptions } from '../types'; type CraftContextType = { config: CraftOptions; location: Location; }; export declare const CraftContext: import('react').Context<CraftContextType | undefined>; type Location = { pathname: string; absoluteUrl: string; }; type CraftContextProps = { config: CraftOptions; location: Location; children: ReactNode; }; export declare function CraftProvider({ config, location, children }: CraftContextProps): import("react/jsx-runtime").JSX.Element; export declare function useCraftContext(): CraftContextType; export declare function useCraftConfigContext(): CraftOptions; export declare function useCraftLocationContext(): Location; export declare function useCraftContentMapping(): import('..').ContentMapping; export {}; //# sourceMappingURL=craftContext.d.ts.map