import { VNode } from "../VNode"; import { VBindingsPreparer } from "../VBindingsPreparer"; import { VConditionalDirectiveContext } from "./VConditionalDirectiveContext"; import { VDirective } from "./VDirective"; import { VDirectiveParseContext } from "./VDirectiveParseContext"; import { VDOMUpdater } from "../VDOMUpdater"; /** * Base class for conditional directives such as v-if, v-else-if, and v-else. * This class manages the rendering of the associated virtual node based on the evaluation of the directive's condition. * It also coordinates with other related conditional directives to ensure only one block is rendered at a time. */ export declare abstract class VConditionalDirective implements VDirective { #private; /** * @param context The context for parsing the directive. */ constructor(context: VDirectiveParseContext); /** * @inheritdoc */ abstract get name(): string; /** * @inheritdoc */ get vNode(): VNode; /** * @inheritdoc */ get needsAnchor(): boolean; /** * @inheritdoc */ get bindingsPreparer(): VBindingsPreparer | undefined; /** * @inheritdoc */ get domUpdater(): VDOMUpdater | undefined; /** * @inheritdoc */ get templatize(): boolean; /** * @inheritdoc */ get dependentIdentifiers(): string[]; /** * The context for managing related conditional directives (v-if, v-else-if, v-else). */ get conditionalContext(): VConditionalDirectiveContext; /** * Indicates whether the condition for this directive is currently met. * For v-if and v-else-if, this depends on the evaluation of their expressions. * For v-else, this is always true. */ get conditionIsMet(): boolean; /** * @inheritdoc */ get onMount(): (() => void) | undefined; /** * @inheritdoc */ get onMounted(): (() => void) | undefined; /** * @inheritdoc */ get onUpdate(): (() => void) | undefined; /** * @inheritdoc */ get onUpdated(): (() => void) | undefined; /** * @inheritdoc */ get onUnmount(): (() => void) | undefined; /** * @inheritdoc */ get onUnmounted(): (() => void) | undefined; /** * @inheritdoc */ destroy(): void; }