export default CodeEditor; type CodeEditor = { $on?(type: string, callback: (e: any) => void): () => void; $set?(props: Partial>): void; }; /** A code editor based on Lexical. */ declare const CodeEditor: import("svelte").Component<{ /** * Input value. */ code?: string | undefined; /** * Selected language. */ lang?: string | undefined; /** * Whether to show the language selector. */ showLanguageSwitcher?: boolean | undefined; /** * Make the text input container flexible. */ flex?: boolean | undefined; /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to make the widget read-only. An alias of the * `aria-readonly` attribute. */ readonly?: boolean | undefined; /** * Whether to mark the widget required. An alias of the * `aria-required` attribute. */ required?: boolean | undefined; /** * Whether to mark the widget invalid. An alias of the * `aria-invalid` attribute. */ invalid?: boolean | undefined; /** * The `aria-label` attribute on the editable text box. Either * this or `ariaLabelledby` is required for the editor to have an accessible name. */ ariaLabel?: string | undefined; /** * The `aria-labelledby` attribute on the editable text box. */ ariaLabelledby?: string | undefined; /** * The `aria-describedby` attribute on the editable text * box. */ ariaDescribedby?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; } & Record, {}, "code" | "lang">; type Props = { /** * Input value. */ code?: string | undefined; /** * Selected language. */ lang?: string | undefined; /** * Whether to show the language selector. */ showLanguageSwitcher?: boolean | undefined; /** * Make the text input container flexible. */ flex?: boolean | undefined; /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to make the widget read-only. An alias of the * `aria-readonly` attribute. */ readonly?: boolean | undefined; /** * Whether to mark the widget required. An alias of the * `aria-required` attribute. */ required?: boolean | undefined; /** * Whether to mark the widget invalid. An alias of the * `aria-invalid` attribute. */ invalid?: boolean | undefined; /** * The `aria-label` attribute on the editable text box. Either * this or `ariaLabelledby` is required for the editor to have an accessible name. */ ariaLabel?: string | undefined; /** * The `aria-labelledby` attribute on the editable text box. */ ariaLabelledby?: string | undefined; /** * The `aria-describedby` attribute on the editable text * box. */ ariaDescribedby?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; }; import type { Snippet } from 'svelte';