/** A function that converts from raw Completion response from OpenAI * into a nicer object which includes the first choice in response from OpenAI. */ type ResponseFactory = (response: Raw) => Nice; /** * A transform stream that takes the streaming responses from the OpenAI API * and turns them into useful response objects. */ export declare class StreamCompletionChunker implements TransformStream { writable: WritableStream; readable: ReadableStream; constructor(responseFactory: ResponseFactory); } export {};