/*! * basic-auth * Copyright(c) 2013 TJ Holowaychuk * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed */ /** * Object to represent user credentials. */ export interface Credentials { name: string; pass: string; } /** * Parse basic auth to object. * * @param {string} string * @return {object} * @public */ export declare function parse(string: string): Credentials | undefined; /** * Format Basic Authorization Header * * @param {Credentials} credentials * @return {string} * @public */ export declare function format(credentials: Credentials): string;