import { ReaderLike } from '../reader'; export type Decoder = (reader: ReaderLike) => T; export type OutputType = T extends Decoder ? O : never; export declare const wrapDecode: >(decoder: T) => ((input: Uint8Array) => OutputType);