// Generated by dts-bundle-generator v9.5.1 declare const HTML_RESULT = 1; declare const SVG_RESULT = 2; declare const MATHML_RESULT = 3; export type ResultType = typeof HTML_RESULT | typeof SVG_RESULT | typeof MATHML_RESULT; /** * The return type of the template tag functions, {@linkcode html} and * {@linkcode svg} when it hasn't been compiled by @lit-labs/compiler. * * A `TemplateResult` object holds all the information about a template * expression required to render it: the template strings, expression values, * and type of template (html or svg). * * `TemplateResult` objects do not create any DOM on their own. To create or * update DOM you need to render the `TemplateResult`. See * [Rendering](https://lit.dev/docs/components/rendering) for more information. * */ export type UncompiledTemplateResult = { ["_$litType$"]: T; strings: TemplateStringsArray; values: unknown[]; }; /** * The return type of the template tag functions, {@linkcode html} and * {@linkcode svg}. * * A `TemplateResult` object holds all the information about a template * expression required to render it: the template strings, expression values, * and type of template (html or svg). * * `TemplateResult` objects do not create any DOM on their own. To create or * update DOM you need to render the `TemplateResult`. See * [Rendering](https://lit.dev/docs/components/rendering) for more information. * * In Lit 4, this type will be an alias of * MaybeCompiledTemplateResult, so that code will get type errors if it assumes * that Lit templates are not compiled. When deliberately working with only * one, use either {@linkcode CompiledTemplateResult} or * {@linkcode UncompiledTemplateResult} explicitly. */ export type TemplateResult = UncompiledTemplateResult; /** * Object specifying options for controlling lit-html rendering. Note that * while `render` may be called multiple times on the same `container` (and * `renderBefore` reference node) to efficiently update the rendered content, * only the options passed in during the first render are respected during * the lifetime of renders to that unique `container` + `renderBefore` * combination. */ export interface RenderOptions { /** * An object to use as the `this` value for event listeners. It's often * useful to set this to the host component rendering a template. */ host?: object; /** * A DOM node before which to render content in the container. */ renderBefore?: ChildNode | null; /** * Node used for cloning the template (`importNode` will be called on this * node). This controls the `ownerDocument` of the rendered DOM, along with * any inherited context. Defaults to the global `document`. */ creationScope?: { importNode(node: Node, deep?: boolean): Node; }; /** * The initial connected state for the top-level part being rendered. If no * `isConnected` option is set, `AsyncDirective`s will be connected by * default. Set to `false` if the initial render occurs in a disconnected tree * and `AsyncDirective`s should see `isConnected === false` for their initial * render. The `part.setConnected()` method must be used subsequent to initial * render to change the connected state of the part. */ isConnected?: boolean; } /** * Determines the container bounds of the element * - `flat` Element has white space bounds but reduced visual container. * - `inline` Element container reduces to fit within inline content such as a block of text. * - `inset` Element container optimizes for embedding or inset placement inside another containing element. * - `full` Element container optimizes for filling its container bounds. * - `condensed` Element container optimizes for small, summarized or contained spaces. */ export type Container = "inline" | "flat" | "inset" | "full" | "condensed"; export interface ContainerElement { container?: Partial; } /** * @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: CSSResult[]; render(): TemplateResult<1>; update(changedProperties: PropertyValues): void; } export {};