import { Thing } from '@pod-os/core'; import { ResourceAware, ResourceEventEmitter } from '../events/ResourceAware'; import { SwitchCaseRule } from './rules'; interface CaseWithRule { caseElement: HTMLPosCaseElement; rule: SwitchCaseRule; } /** * Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element. * See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example. * See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions. */ export declare class PosSwitch implements ResourceAware { host: HTMLElement; error: string | null; resource?: Thing; cases: CaseWithRule[]; private readonly disconnected$; subscribeResource: ResourceEventEmitter; componentWillLoad(): void; receiveResource: (resource: Thing) => void; private containsRule; render(): any; disconnectedCallback(): void; } export {};