import { WithSlotMarker } from "./types/Slots.js"; //#region src/utils/as-slot.d.ts /** * Copies the `__SLOT__` marker from a slot-aware source component onto another * component, returning the same component reference typed as a slot. * * Useful when building reusable wrappers around Primer slot components that * still need to be recognised by the parent's slot scanner. * * @example * ```tsx * const ColoredLeadingVisual = asSlot( * function ColoredLeadingVisual({color, children}) { * return {children} * }, * ActionList.LeadingVisual, * ) * ``` */ declare function asSlot(component: T, slotSource: WithSlotMarker): WithSlotMarker; //#endregion export { asSlot };