function parse(
    host: string
  ): {|
    hostname: string | null,
    isValid: boolean,
    isIp: boolean,
    tldExists: boolean,
    publicSuffix: string | null,
    domain: string | null,
    subdomain: string | null
  |};

  declare export function fromUserSettings(options: {|
    rules?: mixed,
    validHosts?: Array<string>,
    extractHostname?: string | null
  |}): {|
    extractHostname: typeof extractHostname,
    isValidHostname: typeof isValidHostname,
    isValid: typeof isValid,
    parse: typeof parse,
    tldExists: typeof tldExists,
    getPublicSuffix: typeof getPublicSuffix,
    getDomain: typeof getDomain,
    getSubdomain: typeof getSubdomain
  |};
}
Flow libdef for 'tldjs'
See https://www.npmjs.com/package/tldjs
by Vincent Driessen, 2018-12-21