import Writer from 'writer-sdk';
import { Chat } from '@hashbrownai/core';
/**
 * The options for the Writer text stream.
 */
export interface WriterTextStreamOptions {
    /**
     * The API Key for the Writer API.
     */
    apiKey: string;
    /**
     * The request for the stream.
     */
    request: Chat.Api.CompletionCreateParams;
    /**
     * A function to transform the request options.
     */
    transformRequestOptions?: (options: Writer.Chat.ChatChatParams) => Writer.Chat.ChatChatParams | Promise<Writer.Chat.ChatChatParams>;
}
/**
 * Streams text from the Writer API.
 *
 * @param options - The options for the stream.
 * @returns An async iterable of Uint8Arrays.
 */
export declare function text(options: WriterTextStreamOptions): AsyncIterable<Uint8Array>;
