import type { Dispatch, StateUpdater } from 'preact/hooks'; import type { Scenario } from '../api/configurations/configurations.types'; import type { LoadingStatus } from '../components/ui/atoms/LoaderWrapper/constants'; import type { TopLevelDataSchema } from '../context/StateContext/types'; import type { LegalEntityType } from '../core/models/api/legal-entity-type'; import type { CountryCode } from '../types/datasets/country-code'; import type { FormConfiguration } from '../types/form-configuration'; export type ParseConfiguration = (configuration: { scenarios: Scenario[]; country: CountryCode; }) => FormConfiguration; interface UseScenarioConfigurationOptions { parseConfiguration: ParseConfiguration; country: CountryCode; legalEntityType: LegalEntityType; setLoadingStatus: Dispatch>; } interface ScenarioConfiguration { fieldConfigurations: FormConfiguration | undefined; } export declare const useScenarioConfiguration: ({ parseConfiguration, country, legalEntityType, setLoadingStatus, }: UseScenarioConfigurationOptions) => ScenarioConfiguration; export {};