import { MessageEntity, User } from '@telegraf/types'; import { Any } from './util'; export type Nestable = string | number | boolean | FmtString; export type MaybeNestableList = Nestable | readonly Nestable[]; export interface FmtString { text: string; entities?: MessageEntity[]; parse_mode?: undefined; __to_nest: Brand; } export declare class FmtString implements FmtString { text: string; constructor(text: string, entities?: MessageEntity[]); static normalise(content: Nestable): FmtString; } /** * Given an `Iterable` and a separator, flattens the list into a single FmtString. * Analogous to Array#join -> string, but for FmtString */ export declare const join: (fragments: Iterable, separator?: string | FmtString) => FmtString; /** Internal constructor for all fmt helpers */ export declare function createFmt(kind?: MessageEntity['type'], opts?: object): (parts: MaybeNestableList, ...items: Nestable[]) => FmtString; export declare const linkOrMention: (content: Nestable, data: { type: 'text_link'; url: string; } | { type: 'text_mention'; user: User; }) => FmtString; //# sourceMappingURL=formatting.d.ts.map