claritykit-svelte
Version:
A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility
41 lines • 1.44 kB
TypeScript
import type { MentionNodeAttrs } from './MentionExtension';
interface MentionRendererProps {
mention: MentionNodeAttrs;
currentUserId?: string;
showPopover?: boolean;
clickable?: boolean;
class?: string;
}
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const MentionRenderer: $$__sveltets_2_IsomorphicComponent<MentionRendererProps, {
'mention-clicked': CustomEvent<{
mention: MentionNodeAttrs;
userId: string;
}>;
'profile-requested': CustomEvent<{
userId: string;
}>;
'notification-triggered': CustomEvent<{
mentionedUserId: string;
messageId?: string;
}>;
} & {
[evt: string]: CustomEvent<any>;
}, {}, {
triggerNotification: (messageId?: string) => void;
}, "">;
type MentionRenderer = InstanceType<typeof MentionRenderer>;
export default MentionRenderer;
//# sourceMappingURL=MentionRenderer.svelte.d.ts.map