///
///
declare module 'riteway' {
export function Try(fn: (...args: U) => V, ...args: U): any | Promise
export function createStream(opts: CreateStreamOptions): ReadableStream
export const describe: DescribeFunction;
interface DescribeFunction {
(unit: string, testFunction: TestFunction): Promise
only: (unit: string, testFunction: TestFunction) => Promise
skip: (unit: string, testFunction: TestFunction) => Promise
}
type assert = (assertion: Assertion) => void
type TestFunction = (assert: assert, end?: Function) => Promise
interface Assertion {
readonly given: any
readonly should: string
readonly actual: T
readonly expected: T
}
interface CreateStreamOptions {
readonly objectMode: boolean
}
}