//#region src/types/media.d.ts /** * How the cockpit previews a file a message mentions: the hub serves it from * the session's working directory and the timeline picks the element by * kind. Anything not listed here is offered as a plain file link. */ export type MediaKind = 'image' | 'video' | 'pdf'; export interface MediaType { kind: MediaKind; contentType: string; } /** Keyed by lower-case extension without the dot. */ export declare const MEDIA_TYPES: Readonly>; /** The hub refuses to serve a mentioned file past this size. */ export declare const MAX_SESSION_FILE_BYTES: number; /** Session file bytes; paths may be cwd-relative or absolute inside the working directory. */ export declare const SESSION_FILE_ROUTE = "/api/workspaces/:workspaceId/sessions/:sessionId/file"; export declare const SESSION_FILE_SHA256_HEADER = "X-File-SHA256"; export declare const SESSION_FILE_EXPECTED_SHA256_HEADER = "X-Expected-SHA256"; /** * Explicit artifact references stay on the artifact owner's guarded, session-scoped content route. * `space:/` is a po-space file, read from the host. The older `artifact:host/` * named the host shelf, which is the Personal space now. */ export declare function sessionFileUrl(sessionId: string, relativePath: string): string; //#endregion //# sourceMappingURL=media.d.mts.map