import { LitElement, PropertyValues } from 'lit'; import { ContainerElement } from '@nvidia-elements/core/internal'; /** * @element nve-codeblock * @description A container for content representing programming languages. * @since 0.1.0 * @entrypoint \@nvidia-elements/code/codeblock * @slot - for declarative slotting of source code and not using the `code` property * @slot actions - slot for action bar * @cssprop --background * @cssprop --padding * @cssprop --border-radius * @cssprop --border * @cssprop --font-family * @cssprop --white-space * @aria https://www.w3.org/WAI/ARIA/apg/practices/structural-roles/ * @beta */ export declare class CodeBlock extends LitElement implements ContainerElement { #private; static readonly metadata: { tag: string; version: string; }; /** * Determines the container styles of component. Flat enables nesting within other containers. */ container?: 'flat' | 'inline'; /** * Programming language that processes the codeblock. */ language: 'bash' | 'css' | 'go' | 'html' | 'javascript' | 'json' | 'markdown' | 'python' | 'shell' | 'toml' | 'typescript' | 'xml' | 'yaml'; /** * Text code to be process into a codeblock. */ code?: string; /** * Adds styling to show the line numbers of the codeblock. */ lineNumbers?: boolean; /** * Adds styling to highlight the provided code lines. * For many lines: use Comma seperated values, ex: (1,5,7). * For range of lines, use hyphen seperated values, ex: (1-5). * You can combine both such as: ex: (1,5,10-15,20). */ highlight?: string; private formattedCode?; static styles: import('lit').CSSResult[]; render(): import('lit').TemplateResult<1>; update(changedProperties: PropertyValues): void; }