import {Buffer, BufferEncoding, Options} from './shared-types'

declare function buffer(value: string | Buffer, options?: Options): string

declare function buffer(
  value: string | Buffer,
  encoding?: BufferEncoding,
  options?: Options
): string

export default buffer
