UNPKG

@toloka-dev/tbx-external-field-client

Version:

Library designed to facilitate communication and configuration management between TBX and an external app

17 lines (14 loc) 723 B
import { AsyncApi, ExternalFieldClientParentApi } from '../types.js'; interface ExternalFieldContextType<Value = any, Config extends Record<string, unknown> = Record<string, unknown>> { api: AsyncApi<ExternalFieldClientParentApi<Value, Config>>; value: Value | null; config: Config & { disabled: boolean; }; } declare const useExternalField: <Value = any, Config extends Record<string, unknown> = Record<string, unknown>>() => ExternalFieldContextType<Value, Config>; interface ExternalFieldConnectionProvider { children: React.ReactNode; } declare const ExternalFieldConnectionProvider: React.FC<ExternalFieldConnectionProvider>; export { ExternalFieldConnectionProvider, useExternalField };