UNPKG

@tgsnake/fileid

Version:

core framework for tgsnake for generating file id

39 lines 1.15 kB
/** * tgsnake - Telegram MTProto framework for nodejs. * Copyright (C) 2022 butthx <https://github.com/butthx> * * THIS FILE IS PART OF TGSNAKE * * tgsnake is a free software : you can redistribute it and/or modify * it under the terms of the MIT License as published. */ import { Decode } from './decode.js'; import { Encode } from './encode.js'; import { Options } from './utils.js'; export declare namespace FileId { /** * Encoding both fileId and fileUniqueId. */ function encode(file: Options | Decode): Encode; /** * Get only string of file id. */ function encodeFileId(file: Options | Decode): string; /** * Get only string of unique id. */ function encodeUniqueId(file: Options | Decode): string; /** * Decode both fileId and uniqueId. */ function decode(fileId: string, uniqueId: string): [fileId: Decode, uniqueId: Decode]; /** * Decode only fileId. */ function decodeFileId(fileId: string): Decode; /** * Decode only uniqueId */ function decodeUniqueId(uniqueId: string): Decode; } //# sourceMappingURL=parser.d.ts.map