export declare const ko: UWidgetLocaleStrings; /** * Lightweight locale registry for u-widgets. * * Scope: library-internal chrome strings only (validation messages, * pagination labels, ARIA labels). NOT a general i18n framework. * * English is the built-in default. Korean ships as `@iyulab/u-widgets/locales/ko` (importing it * registers `ko`); consumers register other locales: * registerLocale('ja', { prev: '前へ', next: '次へ', ... }); */ declare interface UWidgetLocaleStrings { prev: string; next: string; searchPlaceholder: string; searchTable: string; previousPage: string; nextPage: string; tablePagination: string; dataTable: string; /** Appended (visually hidden) to the accessible name of links that open a new tab — citations, markdown links. */ opensInNewTab: string; required: string; minLength: string; maxLength: string; minValue: string; maxValue: string; invalidEmail: string; invalidUrl: string; invalidPattern: string; actions: string; citations: string; gallery: string; keyValuePairs: string; status: string; steps: string; /** Rating with no label or title — template with {value}, {max}. */ ratingOutOf: string; code: string; copy: string; copied: string; moduleNotLoaded: string; unknownWidget: string; addImportHint: string; didYouMean: string; invalidSpec: string; specErrorNotObject: string; /** {max} — the nesting limit. */ specErrorTooDeep: string; specErrorWidgetRequired: string; /** {widget} — a widget the library does not have (reported by `checkSpec`). */ specErrorWidgetUnknown: string; specErrorTypeInvalid: string; specErrorFieldsFormdownExclusive: string; /** {widget}, {got} — the JavaScript type it got. */ specErrorDataNotArray: string; /** {widget}, {got} — the JavaScript type it got, or `array`. */ specErrorDataNotObject: string; specErrorChildrenRequired: string; /** {index} */ specErrorChildInvalid: string; /** {options} — the layouts, comma-separated. */ specErrorLayoutInvalid: string; /** {index} */ specErrorFieldInvalid: string; /** {index} */ specErrorActionInvalid: string; } export { } declare global { interface HTMLElementTagNameMap { 'uw-math': import('@iyulab/u-widgets/math').UwMath; } } declare global { interface HTMLElementTagNameMap { 'u-widget': import('@iyulab/u-widgets').UWidget; } interface GlobalEventHandlersEventMap { 'u-widget-event': CustomEvent; } } declare global { interface HTMLElementTagNameMap { 'uw-chart': import('@iyulab/u-widgets/charts').UwChart; } } declare global { interface HTMLElementTagNameMap { 'uw-metric': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-compose': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-gallery': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-content': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-gauge': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-kv': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-table': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-code': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-form': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-citation': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-status': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-rating': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-steps': HTMLElement; } } declare global { interface HTMLElementTagNameMap { 'uw-video': HTMLElement; } } declare global { namespace JSX { interface IntrinsicElements { 'u-widget': import('@iyulab/u-widgets').UWidgetElementProps; } } } declare module 'react' { namespace JSX { interface IntrinsicElements { 'u-widget': import('@iyulab/u-widgets').UWidgetElementProps; } } } // Type stubs for @formdown/core (optional peer dependency) // These provide compile-time types when @formdown/core is not installed. declare module '@formdown/core/form-manager' { export class FormManager { parse(input: string): void; setDefaults(data: Record): void; getInputFields(): Array<{ name: string; type: string; label?: string; required?: boolean; placeholder?: string; /** 0.15+: `value=Label` 로 값과 보이는 글자를 가른다(라벨 없으면 값을 보인다) */ options?: { value: string; label?: string }[]; attributes?: Record; }>; getActions(): Array<{ name: string; type: string; label?: string; /** 단축형 버튼의 종류(`submit`·`reset`) — 이름은 `submit_<무작위>` 가 된다 */ attributes?: Record; }>; } }