import { type FunctionComponent, type PropsWithChildren } from 'react'; import type { LunaticOptions } from './type'; type LunaticContextType = { missingStrategy?: LunaticOptions['missingStrategy']; management?: LunaticOptions['management']; missing?: LunaticOptions['missing']; shortcut?: LunaticOptions['shortcut']; missingShortcut?: LunaticOptions['missingShortcut']; dontKnowButton?: LunaticOptions['dontKnowButton']; refusedButton?: LunaticOptions['refusedButton']; componentsOptions?: LunaticOptions['componentsOptions']; }; /** Expose specific Lunatic options to handle some (e.g. missing, management, components options) */ export declare const LunaticContext: import("react").Context; /** * Provide `missing`, `missingStrategy`, `shortcut` and `missingShortcut`, * `dontKnowButton`, `refusedButton` to `Missing` component to manage * non-response buttons and shortcut. */ export declare const useLunaticMissing: () => { missing: boolean | undefined; missingStrategy: (() => void) | undefined; shortcut: boolean | undefined; missingShortcut: { dontKnow: string; refused: string; } | undefined; dontKnowButton: string | undefined; refusedButton: string | undefined; }; /** Expose the specified options to override default component behaviour. */ export declare const useLunaticComponentsOptions: () => { detailAlwaysDisplayed?: boolean; disableRosterForLoopDeleteRowButton?: boolean; }; /** Provide `management` to display data states [COLLECTED,EDITED,FORCED] */ export declare const useLunaticManagement: () => boolean | undefined; export declare function createLunaticProvider({ management, missing, missingStrategy, shortcut, missingShortcut, dontKnowButton, refusedButton, componentsOptions, }: LunaticContextType): FunctionComponent; export {};