import type { OpenAI } from "openai"; import type { ClientOptions } from "openai"; import type { PyProxy } from "pyodide/ffi"; interface PyClientOptions { api_key?: string; base_url?: string; organization?: string; timeout?: number; max_retries?: number; defaultHeaders?: PyProxy; defaultQuery?: PyProxy; } export declare function toJs(obj: PyProxy): any; export declare function toPyOptions(options: ClientOptions): Promise; export declare const env: { OPENAI_API_KEY: any; OPENAI_BASE_URL: any; }; export declare function toJsOptions(options: PyClientOptions): ClientOptions; export declare function AsyncClient(options: PyClientOptions): OpenAI; export declare function toAsync(source: string): string; export declare function patchSource(source: string): string; export declare function reformatInputSource(source: string): string; export {}; // # sourceMappingURL=translate.d.ts.map