UNPKG

1.61 kBTypeScriptView Raw
1import { User } from '@telegraf/types';
2import { FmtString, join } from './core/helpers/formatting';
3export { FmtString };
4declare const fmt: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
5declare const bold: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
6declare const italic: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
7declare const spoiler: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
8declare const strikethrough: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
9declare const underline: (parts: string | FmtString | readonly (string | FmtString)[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
10declare const code: (parts: string | FmtString | readonly (string | FmtString)[], ...items: ({} | null | undefined)[]) => FmtString;
11declare const pre: (language: string) => (parts: string | FmtString | readonly (string | FmtString)[], ...items: ({} | null | undefined)[]) => FmtString;
12declare const link: (content: string | FmtString, url: string) => FmtString;
13declare const mention: (name: string | FmtString, user: number | User) => FmtString;
14export { fmt, bold, italic, spoiler, strikethrough, underline, code, pre, link, mention, join, };
15//# sourceMappingURL=format.d.ts.map
\No newline at end of file