import type { DbOperation } from './types.ts'; import type { DocumentQuery } from './types.ts'; import type { DocumentClientState } from '../utils/types.ts'; /** * Options for getDocumentClientState */ interface GetDocumentClientStateOptions { /** Path to uploads directory. If provided, foreign images will be downloaded and saved. */ uploadsPath?: string; /** Whether to add uploads from content (download foreign images). Default: true when uploadsPath is provided */ addUploadsFromContent?: boolean; } /** * Preview raw content with optional slot and template * Used by the editor to preview changes before saving * * When options.uploadsPath is provided and document.content contains foreign images, * those images will be downloaded, saved as uploads, and the content will be updated * with local upload URLs. This provides: * 1. Security - prevents malicious image URL swapping after save * 2. Link rot prevention - images are preserved even if source goes offline */ export declare const getDocumentClientState: DbOperation<[ DocumentQuery, unknown?, Record?, GetDocumentClientStateOptions? ], DocumentClientState | null>; export {}; //# sourceMappingURL=getDocumentClientState.d.ts.map