import { type CredentialValueSource } from "@arnilo/prism"; import { type ProviderMediaScope } from "@arnilo/prism/providers/media"; export interface OpenAIFileUploadManagerOptions { readonly providerId?: string; readonly baseUrl?: string; readonly apiKey?: CredentialValueSource; readonly fetch?: typeof fetch; readonly scope?: ProviderMediaScope; readonly inlineMaxBytes?: number; readonly maxCacheEntries?: number; readonly purpose?: string; } export interface OpenAIResolvedFileWire { readonly filename: string; readonly fileData?: string; readonly fileId?: string; readonly uploaded: boolean; } export declare function createOpenAIFileUploadManager(options?: OpenAIFileUploadManagerOptions): { resolveFileWire: (mediaType: string, bytes: Uint8Array, filename: string, signal?: AbortSignal) => Promise; cleanup: (signal?: AbortSignal) => Promise; inlineMaxBytes: number; maxItemBytes: number; }; export type OpenAIFileUploadManager = ReturnType;