import { Option } from 'fp-ts/lib/Option'; import { Task } from 'fp-ts/lib/Task'; import { AsyncStream } from '../uri'; /** * Gets all but the last element of an {@link AsyncStream}, creating a new * {@link AsyncStream}, or `None` if the stream was empty. * * @export * @template A The value type. * @param {AsyncStream} fa The input async stream. * @return {Task>>} A task of an option of output async * stream. * * @__PURE__ */ export declare function init(fa: AsyncStream): Task>>;