import * as React from 'react'; import { F as Flags, e as FlagBag } from './types-06e22b20.js'; import 'cookie'; /** * This function accesses the `flagBag` from the context. You have to put it there * first by rendering a ``. * * _Note that it's generally better to explicitly pass your flags down as props, * so you might not need this at all._ */ declare function createUseFlagBag(): () => FlagBag; /** * If you want to be able to access the flags from context using `useFlagBag()`, * you can render the FlagBagProvider at the top of your Next.js pages, like so: * * ```js * import { useFlags } from "@happykit/flags/client" * import { FlagBagProvider, useFlagBag } from "@happykit/flags/context" * * export default function YourPage () { * const flagBag = useFlags() * * return ( * * * * ) * } * ``` * * You can then call `useFlagBag()` to access your `flagBag` from within * `YourOwnComponent` or further down. * * _Note that it's generally better to explicitly pass your flags down as props, * so you might not need this at all._ */ declare function FlagBagProvider(props: { value: FlagBag; children: React.ReactNode; }): React.FunctionComponentElement | null>>; export { FlagBagProvider, createUseFlagBag };