import { UseCSPNonceResult } from '../types'; /** * Options for the useCSPNonce hook */ export interface UseCSPNonceOptions { /** Auto-regenerate nonce at this interval (ms) */ regenerateInterval?: number; /** Whether to initialize CSP Manager if not already */ autoInitialize?: boolean; } /** * Hook for accessing CSP nonce values * * Provides nonce values for inline scripts and styles that comply * with Content Security Policy requirements. * * @param options - Hook options * @returns CSP nonce operations and values * * @example * ```tsx * function ScriptLoader() { * const { nonce, scriptNonce } = useCSPNonce(); * * return ( *