/** * Slot helpers for components. * * @module bquery/component */ import type { Signal } from '../reactive/index'; /** * Reactive signal containing the currently assigned nodes for the given slot. * * Must be called from a component lifecycle hook (e.g. `connected`). The * underlying `slotchange` listener is removed automatically when the * component disconnects. * * @param host - The component host element * @param name - Slot name, or `undefined` for the default slot * * @example * ```ts * connected() { * const items = useSlot(this, 'item'); * useEffect(() => console.log('Items:', items.value.length)); * } * ``` */ export declare const useSlot: (host: HTMLElement, name?: string) => Signal; /** * Returns `true` when the host's shadow root contains a non-empty slot with * the given name (or the default slot if no name is provided). */ export declare const hasSlot: (host: HTMLElement, name?: string) => boolean; /** * Returns the concatenated text content of all nodes assigned to the named slot. */ export declare const slotText: (host: HTMLElement, name?: string) => string; //# sourceMappingURL=slots.d.ts.map