import type { DatabaseSync } from 'node:sqlite'; import { type TaskResultDelivery } from '@xopcai/gateway-contract'; type Origin = { key: string; kind: 'chat' | 'task' | 'automation'; conversationId: string; transcriptId?: string; entryId?: string; projectId?: string; taskId?: string; automationRunId?: string; label?: string; createdAt: number; }; export declare const SPACE_VIDEO_MAX_BYTES: number; type Content = { fileName: string; mimeType: string; size: number; kind: string; mediaId?: string; body?: string; sha256?: string; }; export declare function archiveSpaceContent(db: DatabaseSync, origin: Origin, identity: string, title: string, content: Content, userInitiated?: boolean): string | null; export declare function spaceMarkdown(title: string, body: string): Content; export declare function archiveSpaceTurn(db: DatabaseSync, source: { conversationId: string; transcriptId: string; entryId: string; createdAt: number; outcome: unknown; }): void; export declare function archiveSpaceTaskDelivery(db: DatabaseSync, delivery: TaskResultDelivery, entryId?: string): void; export declare function archiveSpaceGeneratedMedia(db: DatabaseSync, kind: 'music' | 'video', id: string): void; export {};