import { SupportedLocales } from '@open-formulieren/types'; import { default as React } from 'react'; import { PrefillAttributeOption, PrefillPluginOption } from './components/builder/prefill/types'; import { RegistrationAttributeOption } from './components/builder/registration/registration-attribute'; import { ColorOption } from './components/builder/rich-text'; import { ValidatorOption } from './components/builder/validate/validator-select'; import { ReferenceListsServiceOption, ReferenceListsTable, ReferenceListsTableItem } from './components/builder/values/reference-lists/types'; import { AuthPluginOption } from './registry/cosignV1/edit'; import { AnyComponentSchema } from './types'; export interface SelectOption { value: string; label: string; } export interface DocumentTypeOption { backendLabel: string; catalogueLabel: string; url: string; description: string; } export interface MapTileLayer { identifier: string; url: string; label: string; } export interface MapOverlayTileLayer { name: string; type: 'wms' | 'wfs'; uuid: string; url: string; } export type FormType = 'regular' | 'appointment' | 'single_step'; export interface BuilderContextType { uniquifyKey: (key: string) => string; supportedLanguageCodes: SupportedLocales[]; richTextColors: ColorOption[]; theme: 'light' | 'dark'; formType: FormType; getFormComponents: () => AnyComponentSchema[]; getValidatorPlugins: (componentType: string) => Promise; getRegistrationAttributes: (componentType: string) => Promise; getServices: (type: string) => Promise; getReferenceListsTables: (service: string) => Promise; getReferenceListsTableItems: (service: string, tableCode: string) => Promise; getPrefillPlugins: (componentType: string) => Promise; getPrefillAttributes: (plugin: string) => Promise; getFileTypes: () => Promise; serverUploadLimit: string; getDocumentTypes: () => Promise>; getConfidentialityLevels: () => Promise; getAuthPlugins: () => Promise; getMapTileLayers: () => Promise; getMapOverlayTileLayers: () => Promise; } declare const BuilderContext: React.Context; export interface RenderContextType { bareInput: boolean; } declare const RenderContext: React.Context; export { BuilderContext, RenderContext };