import * as i0 from '@angular/core'; import { InputSignal, OutputEmitterRef, WritableSignal, Signal } from '@angular/core'; import { VariantProps } from 'class-variance-authority'; type CodeBlockVariant = 'filled' | 'outlined'; /** * CVA variants for the code block container. * * @tokens `--color-muted`, `--color-foreground`, * `--color-border`, `--color-border-subtle`, * `--radius-card`, `--font-mono` */ declare const codeBlockVariants: (props?: { variant?: CodeBlockVariant; }) => string; type CodeBlockVariants = VariantProps; /** * Code block component for displaying code snippets with a language label * and copy-to-clipboard functionality. * * Renders plain monospace text in a styled container — no syntax highlighting. * The header bar shows an optional language label and a copy button that * provides visual feedback (checkmark icon for 2 seconds) after copying. * * @tokens `--color-muted`, `--color-muted-foreground`, `--color-muted-hover`, * `--color-foreground`, `--color-border`, `--color-border-subtle`, * `--color-ring`, `--color-success`, * `--font-mono`, `--radius-card` * * @example Basic usage with language label * ```html * * ``` * * @example Outlined variant * ```html * * ``` */ declare class ComCodeBlock { /** The raw code string to display. */ readonly code: InputSignal; /** Language label shown in the header (e.g. 'TypeScript', 'HTML'). */ readonly language: InputSignal; /** Visual variant. */ readonly variant: InputSignal; /** Consumer CSS classes — merged with variant classes. */ readonly userClass: InputSignal; /** Emitted when code is successfully copied to clipboard. */ readonly copied: OutputEmitterRef; /** @internal Tracks copy feedback state. */ protected readonly isCopied: WritableSignal; /** @internal Computed host element classes. */ protected readonly hostClasses: Signal; private readonly clipboard; private readonly destroyRef; private copyTimeoutId; /** Copies the code to clipboard and shows feedback for 2 seconds. */ protected copyToClipboard(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { ComCodeBlock, codeBlockVariants }; export type { CodeBlockVariant, CodeBlockVariants };