/*! * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { ExtendedHTMLElement } from '../helper/dom'; import { CodeBlockActions, CodeSelectionType, OnCodeBlockActionFunction } from '../static'; export interface SyntaxHighlighterProps { codeStringWithMarkup: string; language?: string; showLineNumbers?: boolean; block?: boolean; wrapCodeBlock?: boolean; startingLineNumber?: number; index?: number; codeBlockActions?: CodeBlockActions; hideLanguage?: boolean; unlimitedHeight?: boolean; onCopiedToClipboard?: (type?: CodeSelectionType, text?: string, codeBlockIndex?: number) => void; onCodeBlockAction?: OnCodeBlockActionFunction; } export declare class SyntaxHighlighter { private readonly props; private readonly codeBlockButtons; render: ExtendedHTMLElement; constructor(props: SyntaxHighlighterProps); private readonly getSelectedCodeContextMenu; private readonly getSelectedCode; private readonly onCopiedToClipboard; }