export interface CardObject { type: 'card'; size: 'lg' | 'sm'; theme?: Theme; color?: string; modules: any[]; } export declare type Theme = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'secondary'; export interface ModuleObject { [key: string]: any; type: 'section' | 'image-group' | 'header' | 'divider' | 'action-group' | 'context' | 'file' | 'audio' | 'video' | 'countdown' | 'invite'; } export declare class Card implements CardObject { type: 'card'; size: 'lg' | 'sm'; theme?: Theme; color?: string; modules: ModuleObject[]; constructor(content?: string | CardObject); static validate(content: CardObject): boolean; setSize(size: CardObject['size']): this; setTheme(theme: Theme): this; setColor(color: string): this; addTitle(title: string, emoji?: boolean): this; addImage(source: string, options?: { alt?: string; size?: CardObject['size']; circle?: boolean; }): this; addText(content: string, emoji?: boolean, accessoryMode?: 'right' | 'left', accessory?: any): this; addCountdown(mode: 'second' | 'hour' | 'day', endTime: number | Date, startTime?: number | Date): this; addDivider(): this; addModule(module: ModuleObject): this; /** * Export card object to string. You can use this if you need stringified card with array bracket(usually used when sending single card). * * @param {boolean} [arrayBracket=true] * @return {*} {string} * @memberof Card */ toString(arrayBracket?: boolean): string; /** * * @deprecated */ stringify(): string; }