odin/node_modules/telegraf/typings/util.d.ts
2022-11-19 01:49:12 +01:00

15 lines
No EOL
631 B
TypeScript

/// <reference types="node" />
import { FmtString } from './format';
export declare const env: NodeJS.ProcessEnv;
export declare type Expand<T> = T extends object ? T extends infer O ? {
[K in keyof O]: O[K];
} : never : T;
declare type MaybeExtra<Extra> = (Extra & {
caption?: string;
}) | undefined;
export declare function fmtCaption<Extra extends {
caption?: string | FmtString;
} & Record<string, unknown>>(extra?: Extra): MaybeExtra<Extra>;
export declare function deprecate(method: string, ignorable: string | undefined, use: string | undefined, see?: string): void;
export {};
//# sourceMappingURL=util.d.ts.map