tickethead-sdk
Version:
SDK for the Tickethead API
15 lines • 598 B
TypeScript
/**
* Method creates multipart body with provided file.
*
* @param fileName
* @param fileData
* @param boundary Parameter used for the multipart boundary.
* @returns Multipart body as Uint8Array.
*/
export declare function writeMultipartForm(fileName: string, fileData: Buffer, boundary: string, name: string, contentType?: string): Uint8Array;
/**
* Boundary is used to separate fields in multipart, a value that should not appear in the data.
* This value is added in the `Content-Type` header.
*/
export declare function generateBoundary(): string;
//# sourceMappingURL=upload.d.ts.map