import * as lit from 'lit'; import { LitElement, PropertyValues, nothing } from 'lit'; import { b as transformTestApi, t as transformItemApi } from './qti-transform-test.d-BL7GGFJj.js'; import { C as ComputedContext, a as ComputedItem } from './computed.types.d-SsTm3ieP.js'; import { QtiAssessmentItem, QtiModalFeedback } from './elements.js'; import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js'; import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './qti-expression.d-B-Cfbqlb.js'; import { TemplateFunction } from '@heximal/templates'; import { h as VariableValue, b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js'; import { S as SessionContext, V as View } from './session.context.d-Cw8GcziG.js'; import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js'; import { b as QtiRuleBase } from './qti-rule-base.d-Bdzg8eGH.js'; declare class QtiAssessmentTest extends LitElement { #private; identifier: string; get title(): string; set title(value: string); _testContext?: TestContext; connectedCallback(): Promise; render(): lit.TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'qti-assessment-test': QtiAssessmentTest; } } declare module '../../public-events' { interface PublicEventMap { 'cito-test-loaded': CustomEvent; } } /** * Defined here, and re-exported by the navigation mixin under the same name, so this file imports * nothing from the mixin: the mixin imports the components that consume this context, and a type * import counts as a dependency for madge. */ type PostLoadTestTransformCallback = (transformer: transformTestApi, testElement: QtiAssessmentTest) => transformTestApi | Promise; /** * What the components inside a test need from the `qti-test` that contains them: the things a host * put on it, and the element to query. Provided by `qti-test` about itself. * * It is context and not `closest('qti-test')` because a request crosses shadow roots and `closest` * stops at the first one, so a navigation or container a host renders inside its own component * would never find its test. Internal on purpose: not exported from the package, and not API. */ interface TestHost extends HTMLElement { qtiContext: QtiContext; postLoadTestTransformCallback: PostLoadTestTransformCallback | null; } /** * The model a `