import { VNode } from "../VNode"; import { VBindingsPreparer } from "../VBindingsPreparer"; import { VDirective } from "./VDirective"; import { VDirectiveParseContext } from "./VDirectiveParseContext"; import { VDOMUpdater } from "../VDOMUpdater"; /** * Directive for conditionally displaying an element. * This directive shows or hides an element based on a boolean expression. * For example: *
This element is conditionally visible.
* The element is included in the DOM regardless of the expression's value, but its visibility is controlled via CSS (display property). * If the expression evaluates to true, the element is visible; if false, it is hidden (display: none). * This directive is useful for toggling visibility without removing the element from the DOM. * Note that this directive does not support v-else or v-else-if. */ export declare class VShowDirective implements VDirective { #private; /** * @param context The context for parsing the directive. */ constructor(context: VDirectiveParseContext); /** * @inheritdoc */ 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[]; /** * Makes the node visible by resetting its display style. * If the node is already visible, no action is taken. */ visibleNode(): void; /** * Hides the node by setting its display style to "none". * This effectively removes the node from the layout. * If the node is already hidden, no action is taken. */ invisibleNode(): void; /** * @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; }