declare const hasSlottedElements: (el: HTMLElement, name?: string) => boolean;
declare const hasSlottedNodes: (el: HTMLElement, name?: string) => boolean;
declare const hasSlotted: (el: HTMLElement, name?: string) => boolean;
declare const hasSlottedContent: (el: HTMLElement, name?: string) => boolean;
/**
* Direct-child queries equivalent to `:scope > …` selectors. Stencil's
* mock-doc selector engine (spec tests and the hydrate/SSR build) cannot
* parse `:scope`, so host-lifecycle code must use these instead of
* `host.querySelector(':scope > [slot="x"]')`.
*/
declare const queryChildBySlot: (host: HTMLElement, name: string) => HTMLElement | null;
declare const queryChildrenBySlot: (host: HTMLElement, name: string) => HTMLElement[];
declare const hasChildWithSlot: (host: HTMLElement, name: string) => boolean;
declare const queryChildrenByTag: (host: HTMLElement, tagName: string) => HTMLElement[];
/**
* Normalises a label-like string: trims whitespace and coerces empty/nullish
* values to `undefined`. Use inside `@Watch('label')` handlers when a component
* exposes a `label` prop with a deprecated default slot fallback.
*/
declare const sanitizeLabel: (value?: string | null) => string | undefined;
/**
* Reads text assigned to the host's default `` for use as a fallback
* when a `label` prop has not been set. Intended to be called from an
* `onSlotchange` handler on a deprecated default slot.
*
* Only the nodes actually assigned to the default slot are inspected (named
* slots like `notification` are ignored). Element nodes are stripped — the
* concatenated text content of the assigned nodes is returned instead — and a
* `console.warn` is emitted so developers can migrate to the `label`
* property. Returns `undefined` for empty/whitespace.
*/
declare const readSlottedLabel: (host: HTMLElement) => string | undefined;
/**
* Calls `onChange` when the content of the host changes after load: an element added or removed
* at any depth, or the `slot` attribute of one changed (a Magma child writes its own when it
* renders). A slot rendered only once it has content, or content nested below the slotted
* children, sends no `slotchange` to tell. Returns the function that stops observing; where
* there is no MutationObserver (the hydrate/SSR runtime) nothing is observed.
*/
declare const observeChildren: (host: HTMLElement, onChange: () => void) => (() => void);
export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, hasChildWithSlot, queryChildBySlot, queryChildrenBySlot, queryChildrenByTag, observeChildren, sanitizeLabel, readSlottedLabel, };