import { DescriptorConfig, DescriptorState, ServerState } from 'contexts/types'; import { QuestionnaireState } from 'types'; import { UiState } from 'types/UiState'; type DeepPartial = { [K in keyof T]?: T[K] extends object ? DeepPartial : T[K]; }; /** * Build a fully-populated `DescriptorState` from a partial input. Fields * defaults to `{}` and config / ui / server are filled with permissive * defaults so tests only declare the bits they care about. * * Use instead of `as never` casts when invoking descriptor predicates * (`getVisible`, `getRequired`, etc.) from tests. */ export declare const makeDescriptorState: (partial?: { fields?: QuestionnaireState; config?: Partial; ui?: Partial; server?: DeepPartial; }) => DescriptorState; export {};