UNPKG

@merqva/telegram-passport

Version:

Decrypt/Parse incoming Telegram Passport data

10 lines (9 loc) 459 B
/// <reference types="node" /> import { RequestedFields, SecureValue } from './interfaces'; export declare type EncryptedPassportElementType = keyof RequestedFields; export declare type Indexable<T = unknown> = { [key: string]: T; }; export declare type SecureDataKey = Exclude<EncryptedPassportElementType, 'phone_number' | 'email' | 'nonce'>; export declare type SecureValueKey = keyof SecureValue; export declare type StringOrBuffer = string | Buffer;