import type { Snippet } from 'svelte'; import type { SvelteHTMLElements } from 'svelte/elements'; import type { SyntaxStyler } from './syntax_styler.js'; type $$ComponentProps = SvelteHTMLElements['code'] & ({ /** The source code to syntax highlight. */ content: string; dangerous_raw_html?: undefined; } | { content?: undefined; /** * Pre-highlighted HTML from the `svelte_preprocess_fuz_code` preprocessor. * When provided, skips runtime syntax highlighting entirely. * * Named `dangerous_raw_html` to signal that it bypasses sanitization, * matching the `{@html}` pattern already used by this component. */ dangerous_raw_html: string; }) & { /** * Language identifier (e.g. 'ts', 'css', 'html', 'json', 'svelte', 'md'). * Selects the registered lexer and sets the `data-lang` attribute. `null` * disables highlighting (content renders as plain text); `undefined` * falls back to the default ('svelte'). * * @default 'svelte' */ lang?: string | null; /** * Whether to render as inline code instead of a block. * * @default false */ inline?: boolean; /** * Whether to wrap long lines in block code (`white-space: pre-wrap` * instead of `pre`). Wraps at whitespace — long unbroken tokens (URLs, * hashes) still scroll horizontally. Ignored for inline code. * * @default false */ wrap?: boolean; /** * Whether to disable the default margin-bottom on block code * (`var(--space_lg)` when not `:last-child`). * * @default false */ nomargin?: boolean; /** * Custom `SyntaxStyler` instance, e.g. with different languages registered. * * @default syntax_styler_global */ syntax_styler?: SyntaxStyler; /** * Optional snippet to customize how the highlighted markup is rendered. * Receives the generated HTML string as a parameter. */ children?: Snippet<[markup: string]>; }; declare const Code: import("svelte").Component<$$ComponentProps, {}, "">; type Code = ReturnType; export default Code; //# sourceMappingURL=Code.svelte.d.ts.map