/**
 * FormViewContext - Shared context for unified form view
 *
 * Provides consistent state management across all view modes.
 */
import React from 'react';
import type { ReactNode } from 'react';
import type { FormViewContextValue, HazoCollabFormViewProps } from './types.js';
/**
 * Form View Context
 */
declare const FormViewContext: React.Context<FormViewContextValue | undefined>;
/**
 * Hook to consume FormViewContext
 * Throws if used outside of FormViewProvider
 */
export declare function useFormViewContext(): FormViewContextValue;
/**
 * Hook to consume FormViewContext when the caller may render outside a
 * FormViewProvider (e.g. shared field components used by HazoCollabFormView).
 *
 * Returns `undefined` when no provider is mounted, instead of throwing.
 */
export declare function useFormViewContextOptional(): FormViewContextValue | undefined;
/**
 * Props for FormViewProvider
 */
export interface FormViewProviderProps {
    children: ReactNode;
    props: HazoCollabFormViewProps;
}
/**
 * FormViewProvider - Provides context for form view components
 *
 * Handles:
 * - Normalizing field metadata
 * - Fetching chat status for all fields
 * - Building unified settings and callbacks
 */
export declare function FormViewProvider({ children, props }: FormViewProviderProps): import("react/jsx-runtime").JSX.Element;
export { FormViewContext };
//# sourceMappingURL=context.d.ts.map