/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import React from 'react'; import type { FieldComponentSlots, CodeField as FieldType } from '@byline/core'; export declare const CodeField: ({ field, value, defaultValue, onChange, id, path, locale, components, }: { field: FieldType; value?: string; defaultValue?: string; onChange?: (value: string) => void; id?: string; path?: string; /** When provided, renders a LocaleBadge next to the field label. */ locale?: string; /** Optional UI component slot overrides from the admin config. */ components?: FieldComponentSlots; }) => React.JSX.Element;