/** * React wrapper for c15t DevTools * * Provides a React component for easy integration into React applications. * * @example * ```tsx * import { DevTools } from '@c15t/dev-tools/react'; * * function App() { * return ( * <> * * * * ); * } * ``` * * @packageDocumentation */ import { type DevToolsInstance, type DevToolsOptions } from './core/devtools'; /** * Props for the C15TDevTools component */ export interface C15TDevToolsProps extends Partial { /** * Whether the DevTools should be disabled * Useful for production builds * @default false */ disabled?: boolean; } /** * React component that renders the c15t DevTools * * This component creates a floating DevTools button that, when clicked, * opens a panel showing consent state, location info, scripts, and actions. * * @example * Basic usage: * ```tsx * import { DevTools } from '@c15t/dev-tools/react'; * * function App() { * return ( * <> * * * * ); * } * ``` * * @example * With custom position: * ```tsx * * ``` * * @example * Disabled in production: * ```tsx * * ``` * * @example * Default open state: * ```tsx * * ``` */ export declare function C15TDevTools({ namespace, position, defaultOpen, disabled, }: C15TDevToolsProps): null; export type { DevToolsPosition, DevToolsTab } from './core/state-manager'; export type { DevToolsInstance, DevToolsOptions }; export { C15TDevTools as DevTools };