import { SlotRegistry, type CliRenderer, type Plugin, type PluginContext, type PluginErrorEvent, type SlotMode, type SlotRegistryOptions } from "@opentui/core"; import { type JSX } from "solid-js"; export type { SlotMode }; type SlotMap = Record; export type SolidPlugin = Plugin; export type SolidSlotProps = { registry: SlotRegistry; name: K; mode?: SlotMode; children?: JSX.Element; pluginFailurePlaceholder?: (failure: PluginErrorEvent) => JSX.Element; } & TSlots[K]; export type SolidBoundSlotProps = { name: K; mode?: SlotMode; children?: JSX.Element; } & TSlots[K]; export type SolidRegistrySlotComponent = (props: SolidSlotProps) => JSX.Element; export type SolidSlotComponent = (props: SolidBoundSlotProps) => JSX.Element; export interface SolidSlotOptions { pluginFailurePlaceholder?: (failure: PluginErrorEvent) => JSX.Element; } export declare function createSolidSlotRegistry(renderer: CliRenderer, context: TContext, options?: SlotRegistryOptions): SlotRegistry; export declare function createSlot(registry: SlotRegistry, options?: SolidSlotOptions): SolidSlotComponent; export declare function Slot(props: SolidSlotProps): JSX.Element;