import type { ReactNode } from 'react'; import type { PageError } from './PageErrorPanel.types'; export interface PageErrorContextValue { pageError: PageError | null; setPageError: (error: PageError | null) => void; clearPageError: () => void; } interface PageErrorProviderProps { children: ReactNode; } /** * Page-scoped error provider. Each page (Create / Manage / future flows) * wraps its own subtree in its own `` instance, so error * state is isolated per-page and never leaks across navigation. * * Descendants publish errors via `usePageError().setPageError(...)` and the * paired `` renders them. */ export declare const PageErrorProvider: ({ children }: PageErrorProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const usePageError: () => PageErrorContextValue; export {};