UNPKG

@virtuals-protocol/game-twitter-node

Version:

Strongly typed, full-featured, light, versatile yet powerful Virtual Twitter API v2 client for Node.js. Forked from twitter-api-v2.

26 lines (25 loc) 954 B
/// <reference types="node" /> /// <reference types="node" /> type TStringable = { toString(): string; }; export declare class FormDataHelper { protected _boundary: string; protected _chunks: Buffer[]; protected _footerChunk?: Buffer; protected static readonly LINE_BREAK = "\r\n"; protected static readonly DEFAULT_CONTENT_TYPE = "application/octet-stream"; protected bodyAppend(...values: (Buffer | string)[]): void; append(field: string, value: Buffer | string | TStringable, contentType?: string): void; getHeaders(): { 'content-type': string; }; /** Length of form-data (including footer length). */ protected getLength(): number; getBuffer(): Buffer; protected getBoundary(): string; protected generateBoundary(): void; protected getMultipartHeader(field: string, value: string | Buffer, contentType?: string): string; protected getMultipartFooter(): Buffer; } export {};