/** * P1 Puck Context * * React context for sharing P1 state across Puck components. */ import type { P1PuckContextValue } from './types.js'; /** * Context for P1 Puck integration state. */ export declare const P1PuckContext: import("react").Context; /** * Hook to access P1 Puck context. * * @throws Error if used outside of P1PuckProvider * @returns P1 Puck context value * * @example * ```tsx * function MyComponent() { * const { saveStatus, createCheckpoint } = useP1Puck(); * * return ( * * ); * } * ``` */ export declare function useP1Puck(): P1PuckContextValue; /** * Non-throwing variant of useP1Puck. * Returns null when no P1PuckProvider is present instead of throwing. */ export declare function useP1PuckOptional(): P1PuckContextValue | null;