import React from 'react'; export type SlotComponent
= React.ComponentType
;
interface SlotEntry {
id: string;
component: SlotComponent;
priority: number;
source?: string;
}
type Listener = () => void;
declare class SlotRegistryImpl {
private slots;
private listeners;
register(slotId: string, component: SlotComponent, opts?: {
priority?: number;
source?: string;
}): () => void;
get(slotId: string): SlotEntry[];
subscribe(listener: Listener): () => void;
private emit;
}
export declare const slotRegistry: SlotRegistryImpl;
export interface SlotProps {
/** Slot id. */
name: string;
/** Props forwarded to each contribution component. */
props?: Record