@jikey/fcazero
Version:
Facebook Messenger bot, and is one of the most advanced next-generation Facebook Chat API (FCA)
62 lines (59 loc) • 2 kB
TypeScript
import { ParsableHtmlResult, ArrayToObjectGetKey, ArrayToObjectGetValue, FormField } from '../types/utils/constants.js';
declare class Constants {
static h: RegExp;
static i: {
[key: string]: string;
};
static j: {
_: string;
A: string;
B: string;
C: string;
D: string;
E: string;
F: string;
G: string;
H: string;
I: string;
J: string;
K: string;
L: string;
M: string;
N: string;
O: string;
P: string;
Q: string;
R: string;
S: string;
T: string;
U: string;
V: string;
W: string;
X: string;
Y: string;
Z: string;
};
static NUM_TO_MONTH: string[];
static NUM_TO_DAY: string[];
static getRandom<T>(arr: T[]): T | undefined;
static padZeros(val: string | number, len?: number): string;
static generateThreadingID(clientID: string): string;
static binaryToDecimal(data: string): string;
static generateOfflineThreadingID(): string;
static presenceEncode(str: string): string;
static presenceDecode(str: string): string;
static generatePresence(userID: string): string;
static generateAccessiblityCookie(): string;
static getGUID(): string;
static getFrom(str: string, startToken: string, endToken: string): string;
static makeParsable(html: string): string | ParsableHtmlResult;
static arrayToObject<T, V>(arr: T[], getKey: ArrayToObjectGetKey<T>, getValue: ArrayToObjectGetValue<T, V>): Record<string | number | symbol, V>;
static arrToForm(form: FormField[]): Record<string, string>;
static getSignatureID(): string;
static generateTimestampRelative(): string;
static getType(obj: unknown): string;
static delay: (ms: number) => Promise<void>;
static findValueByKey<T = unknown>(root: unknown, key: string): T | null;
static topics: string[];
}
export { Constants };