UNPKG

@lilybird/jsx

Version:
47 lines 1.71 kB
import type { Embed } from "lilybird"; export declare function Embed({ title, description, url, timestamp, color, children }: { title?: string; description?: string; url?: string; timestamp?: boolean | Date | number; color?: number; children?: Array<EmbedComponent> | EmbedComponent; }): Embed.Structure; interface FooterComponent { type: "footer"; data: Embed.FooterStructure; } interface ImageComponent { type: "image"; data: Embed.ImageStructure; } interface ThumbnailComponent { type: "thumbnail"; data: Embed.ThumbnailStructure; } interface VideoComponent { type: "video"; data: Embed.VideoStructure; } interface ProviderComponent { type: "provider"; data: Embed.ProviderStructure; } interface AuthorComponent { type: "author"; data: Embed.AuthorStructure; } interface FieldComponent { type: "field"; data: Embed.FieldStructure; } type EmbedComponent = FooterComponent | ImageComponent | ThumbnailComponent | VideoComponent | ProviderComponent | AuthorComponent | FieldComponent; export declare function EmbedFooter(props: Embed.FooterStructure): FooterComponent; export declare function EmbedImage(props: Embed.ImageStructure): ImageComponent; export declare function EmbedThumbnail(props: Embed.ThumbnailStructure): ThumbnailComponent; export declare function EmbedVideo(props: Embed.VideoStructure): VideoComponent; export declare function EmbedProvider(props: Embed.ProviderStructure): ProviderComponent; export declare function EmbedAuthor(props: Embed.AuthorStructure): AuthorComponent; export declare function EmbedField(props: Embed.FieldStructure): FieldComponent; export {}; //# sourceMappingURL=embed.d.ts.map