import { Ollama as Ollama$1, CreateRequest, AbortableAsyncIterator, ProgressResponse } from './browser.cjs';
export { ChatRequest, ChatResponse, Config, CopyRequest, DeleteRequest, EmbedRequest, EmbedResponse, EmbeddingsRequest, EmbeddingsResponse, ErrorResponse, Fetch, GenerateRequest, GenerateResponse, ListResponse, Logprob, Message, ModelDetails, ModelResponse, Options, PullRequest, PushRequest, ShowRequest, ShowResponse, StatusResponse, SystemOneAnswer, SystemOneChoiceAnswer, SystemOneChoiceQuestion, SystemOneContent, SystemOneNoulAnswer, SystemOneNoulQuestion, SystemOneQuestion, SystemOneRequest, SystemOneResponse, SystemOneScoreAnswer, SystemOneScoreQuestion, SystemOneUsage, TokenLogprob, Tool, ToolCall, VersionResponse, WebFetchRequest, WebFetchResponse, WebSearchRequest, WebSearchResponse, WebSearchResult } from './browser.cjs';

declare class Ollama extends Ollama$1 {
    encodeImage(image: Uint8Array | Buffer | string): Promise<string>;
    /**
     * checks if a file exists
     * @param path {string} - The path to the file
     * @private @internal
     * @returns {Promise<boolean>} - Whether the file exists or not
     */
    private fileExists;
    create(request: CreateRequest & {
        stream: true;
    }): Promise<AbortableAsyncIterator<ProgressResponse>>;
    create(request: CreateRequest & {
        stream?: false;
    }): Promise<ProgressResponse>;
}
declare const _default: Ollama;

export { AbortableAsyncIterator, CreateRequest, Ollama, ProgressResponse, _default as default };
