import * as lit from 'lit'; import { LitElement } from 'lit'; import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js'; import { C as ComputedItemContext, V as View } from './session.context.d-Cw8GcziG.js'; import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js'; import { QtiAssessmentItem } from './elements.js'; /** * `` is a custom element designed for hosting the qti-assessment-item. * The `qti-assessment-item` will be placed inside the shadow DOM of this element. * The element loads the item from the provided URL and renders it inside the shadow DOM. * * ### Styling * Add a class to the element for styling. * * ```html * * * * ``` */ declare class ItemContainer extends LitElement { #private; /** Scoped registry used by the item shadow root. Must be set before connection. */ customElementRegistry: CustomElementRegistry | null; /** URL of the item to load */ itemURL: string | null; /** A parsed HTML document */ itemDoc: DocumentFragment | null; /** The raw XML string */ itemXML: string | null; protected qtiContext: QtiContext; protected createRenderRoot(): HTMLElement | DocumentFragment; protected handleItemURLChange(): Promise; protected handleItemXMLChange(): void; connectedCallback(): Promise; render(): lit.TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'item-container': ItemContainer; } } declare class ItemPrintVariables extends LitElement { protected computedContext?: ComputedItemContext; static styles: lit.CSSResult; render(): lit.TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'item-print-variables': ItemPrintVariables; } } declare const QtiItem_base: (abstract new (...args: any[]) => { view: View; updateAssessmentItemView(assessmentItem: QtiAssessmentItem, view: View): void; }) & typeof LitElement; /** * `` is a custom element designed for rendering a single `qti-assessment-item`. * It can also host some functionalities to interact with the item like scoring, showing feedback, etc. * Placing a mandatory `` inside '' will load or parse the item and render it. * See `` for more details. * * ```html * * * * ``` * * `view` selects the audience the item is presented to, which is what reveals `view`-tagged * content such as a scorer's `qti-rubric-block` — see `ItemViewMixin`. * * ```html * * * * ``` */ declare class QtiItem extends QtiItem_base { #private; computedContext: ComputedItemContext; protected assessmentItem?: QtiAssessmentItem; configContext: ConfigContext; /** * Provided so that descendants (e.g. ``) can read the QTI runtime * context for standalone item delivery, including the optional shuffle `seed`. */ qtiContext: QtiContext; constructor(); render(): lit.TemplateResult<1>; disconnectedCallback(): void; } declare global { interface HTMLElementTagNameMap { 'qti-item': QtiItem; } } export { ItemContainer as I, QtiItem as Q, ItemPrintVariables as a };