import type { ClientOptions } from "openai"; import type { ChatCompletionCreateParams, CompletionCreateParams } from "openai/src/resources/index.js"; import type { PyProxy } from "pyodide/ffi"; export type ChatCompletionParams = Omit; export type TextCompletionParams = Omit; export type Role = "system" | "user" | "assistant"; export interface Message { role: Role; content: string; name?: string; } declare const _default: () => Promise<{ Template: { new (text: string): { proxy: PyProxy; render: (context?: Record | Map) => string; arender: (context?: Record | Map) => Promise; }; fetch: (url: string | URL) => { proxy: PyProxy; render: (context?: Record | Map) => string; arender: (context?: Record | Map) => Promise; }; afetch: (url: string | URL) => Promise<{ proxy: PyProxy; render: (context?: Record | Map) => string; arender: (context?: Record | Map) => Promise; }>; }; Node: any; AsyncChatGenerate: (clientOptions: ClientOptions) => (input: string, options?: ChatCompletionParams) => AsyncGenerator; AsyncTextGenerate: (clientOptions: ClientOptions) => (input: string, options?: TextCompletionParams) => AsyncGenerator; parse_chat_markup: (text: string) => Message[]; promplate: { [x: string]: any; $$flags: number; readonly type: string; toString: () => string; destroy: (options?: { message?: string; destroyRoundtrip?: boolean; }) => void; copy: () => any; toJs: ({ depth, pyproxies, create_pyproxies, dict_converter, default_converter }?: { depth?: number; pyproxies?: any[]; create_pyproxies?: boolean; dict_converter?: (array: Iterable<[key: string, value: any]>) => any; default_converter?: (obj: any, convert: (obj: any) => any, cacheConversion: (obj: any, result: any) => void) => any; }) => any; readonly [Symbol.toStringTag]: string; }; }>; export default _default; // # sourceMappingURL=entries.d.ts.map