import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'; import type { Agent } from '@deepseek-ai/dsh-agent'; import type { Context } from '@deepseek-ai/cordis'; import { type SessionEvent } from '@deepseek-ai/dsh-session'; import type { ChannelSession } from '../domain.js'; import type { PartnerState } from '../domain.js'; import type { PartnerStore } from '../store.js'; export declare function imageRouteScope(state: PartnerState, route: ChannelSession): string | undefined; export declare function imageReferenceId(ref: ImageAttachmentRef): string; interface GeneratedImage { path: string; digest: string; bytes: number; mediaType: string; } type ImageReference = { id: string; name: string; caption?: string; drawingPath?: string; } & ({ ref: ImageAttachmentRef; } | { generated: GeneratedImage; }); export interface ImageReferencePlan { selected: ImageReference[]; inputId?: string; explicit?: true; handedOff?: true; files?: { root: string; paths: string[]; }; issue?: string; choices?: ImageReference[]; available?: ImageReference[]; drawingChoices?: string[]; requested?: boolean; } /** The owning input and exact channel route are the authority. Quote bodies and task prompts never grant access. */ export declare function planImageReferences(events: readonly SessionEvent[], route: ChannelSession, inputId: string, options: { privateFiles: boolean; root?: string | undefined; shared: boolean; scope?: string | undefined; autonomous?: boolean; }): { plan: ImageReferencePlan; recent: ImageReference[]; }; type ImageUse = { routeId: string; scope?: string | undefined; images: ImageReference[]; generated?: ImageReference[]; }; declare module '@deepseek-ai/dsh-session/types' { interface PluginRecordMap { 'plugin:dsh-partner/image-use': ImageUse; } } export declare function renderBackgroundImageReferences(plan: ImageReferencePlan): string; type ReferenceUpload = { data: Uint8Array; mediaType: string; name: string; source: string; }; export declare class PartnerImageReferences { private readonly ctx; private readonly store; constructor(ctx: Context, store: PartnerStore); managesSession(id: string): boolean; private source; plan(agent: Agent, route: ChannelSession, inputId: string, handoff?: { references: readonly string[] | undefined; input: string; signal: AbortSignal; }): Promise; context(agent: Agent): string; resolve(agent: Agent | undefined, requested: string[], signal: AbortSignal): Promise<{ uploads: ReferenceUpload[]; confirm?(generated: GeneratedImage[]): void; } | undefined>; } export {}; //# sourceMappingURL=image-references.d.ts.map