import { type AnonymousUserId } from '@deepseek-ai/dsh-anonymous-user-id'; import type { Context } from '@deepseek-ai/cordis'; import { LlmAdapter, LlmError } from '@deepseek-ai/dsh-llm'; import type { AdapterRegistrationHandle, GenerateOptions } from '@deepseek-ai/dsh-llm'; import type { ManagedAccessCredentialProvider } from '../managed-access-credential.js'; import { type ManagedImageAttachmentReader } from './transport.js'; export declare const ARKME_MANAGED_PROVIDER = "arkme-managed"; export declare const ARKME_MANAGED_MODEL = "deepseek-v4-flash"; export interface ManagedAiLlmAdapterOptions { intelligentBaseUrl: string; credentialOwner: ManagedAccessCredentialProvider; /** Resolves DSH's current durable attachment owner only when an image request needs it. */ resolveAttachmentReader?: () => ManagedImageAttachmentReader | undefined; resolveAnonymousUserId?: () => AnonymousUserId; prepareOperation?: (request: GenerateOptions, bearer: string) => string | undefined; /** Test/runtime seam shared by catalog, direct OSS upload, and managed model transport. */ fetchImpl?: typeof fetch; } /** Convert provider and cross-module structured failures into stable Chinese user copy. */ export declare function localizeManagedAiError(error: unknown): LlmError; export declare function createManagedAiLlmAdapter(options: ManagedAiLlmAdapterOptions): LlmAdapter; export declare function registerManagedAiProvider(ctx: Context, options: ManagedAiLlmAdapterOptions): AdapterRegistrationHandle; //# sourceMappingURL=adapter.d.ts.map