/**
 * @param {string} str
 * @param {number} len
 * @param {string} char
 * @returns {string}
 */
export function lpad(str: string, len: number, char: string): string;
/**
 * @param {string} str
 * @param {number} len
 * @param {string} char
 * @returns {string}
 */
export function rpad(str: string, len: number, char: string): string;
/**
 * @param {object} view
 * @param {number} fieldLength
 * @param {string} str
 * @param {number} offset
 * @returns {number}
 */
export function writeField(view: object, fieldLength: number, str: string, offset: number): number;
/**
 * @param {string} str
 * @returns {object}
 */
export function toBuffer(str: string): object;
export function writeDate(date: any): string;
