UNPKG

@fantinodavide/discord-html-transcripts

Version:

A nicely formatted html transcript generator for discord.js.

52 lines (51 loc) 1.82 kB
import React from 'react'; import type { RenderMessageContext } from '..'; interface V2ContainerProps { accentColor?: string; children: React.ReactNode; } export declare function V2Container({ accentColor, children }: V2ContainerProps): React.JSX.Element; interface V2TextDisplayProps { content: string; style?: 'paragraph' | 'heading1' | 'heading2' | 'heading3'; context: RenderMessageContext; } export declare function V2TextDisplay({ content, style, context }: V2TextDisplayProps): React.JSX.Element; interface V2SeparatorProps { spacing?: 'small' | 'medium' | 'large'; } export declare function V2Separator({ spacing }: V2SeparatorProps): React.JSX.Element; interface V2SectionProps { text?: { content: string; style?: 'paragraph' | 'heading1' | 'heading2' | 'heading3'; }; accessory?: React.ReactNode; context: RenderMessageContext; } export declare function V2Section({ text, accessory, context }: V2SectionProps): React.JSX.Element; interface V2ThumbnailProps { url: string; altText?: string; } export declare function V2Thumbnail({ url, altText }: V2ThumbnailProps): React.JSX.Element; interface V2MediaGalleryProps { items: Array<{ url: string; altText?: string; type: 'image' | 'video'; }>; } export declare function V2MediaGallery({ items }: V2MediaGalleryProps): React.JSX.Element; interface V2ButtonProps { label: string; style?: 'primary' | 'secondary' | 'danger' | 'success'; disabled?: boolean; onClick?: () => void; } export declare function V2Button({ label, style, disabled }: V2ButtonProps): React.JSX.Element; interface V2ButtonContainerProps { children: React.ReactNode; } export declare function V2ButtonContainer({ children }: V2ButtonContainerProps): React.JSX.Element; export {};