// TypeScript Version: 3.0

import unified = require('unified')
import remarkParse = require('remark-parse')
import remarkStringify = require('remark-stringify')

type RemarkOptions = remarkParse.RemarkParseOptions &
  remarkStringify.RemarkStringifyOptions

declare function remark<
  P extends Partial<RemarkOptions> = Partial<RemarkOptions>
>(): unified.Processor<P>

export = remark

// TypeScript Version: 3.0

import unified = require('unified')
import remarkParse = require('remark-parse')
import remarkStringify = require('remark-stringify')

declare namespace remark {
  type RemarkOptions = remarkParse.RemarkParseOptions &
    remarkStringify.RemarkStringifyOptions
}

declare function remark<
  P extends Partial<remark.RemarkOptions> = Partial<remark.RemarkOptions>
>(): unified.Processor<P>

export = remark

Fix export of remark options type
Fix export of remark options type

Related to electron/hubdown#19.

Closes GH-432.

Reviewed-by: Zeke Sikelianos <df4febcaa3b251c8b7232da645f747345e4eb8bd@sikelianos.com>
Reviewed-by: Vlad Hashimoto <682a5267061c8311ed2032c51eaa3e55dbb0b8f3@gmail.com>
Reviewed-by: Titus Wormer <5a19dbfdb793ef6d212461b3c03b23ad19ae3ed1@gmail.com>