import type { GenerationWarning } from '@json-to-office/shared'; /** Scope render-time values without leaking them across concurrent documents. */ export declare function runWithGenerationDate(date: Date, callback: () => T): T; /** Current document date, falling back to the wall clock outside generation. */ export declare function getGenerationDate(): Date; /** * Scope the document base directory for a generation run, so relative asset * paths (`image.props.path` et al.) resolve against the document's own * location rather than `process.cwd()` (#142). No baseDir → plain callback, * preserving the historical cwd-relative behavior. */ export declare function runWithBaseDir(baseDir: string | undefined, callback: () => T): T; /** The active document base directory, if a generation scope set one. */ export declare function getBaseDir(): string | undefined; /** * Resolve a relative file path against the active base directory. Absolute * paths pass through; with no active baseDir the path is returned as-is, * which downstream `fs` calls resolve against cwd — the legacy behavior. */ export declare function resolveFromBaseDir(filePath: string): string; /** * Scope a warning collector for a render, so leaf utilities can report * without every intermediate signature carrying a sink. No collector → plain * callback, and `reportWarning` falls back to `console.warn` as before. */ export declare function runWithWarnings(warnings: GenerationWarning[] | undefined, callback: () => T): T; /** Record a render-time warning against the active collector, if any. */ export declare function reportWarning(component: string, code: string, message: string, context?: Record): void; //# sourceMappingURL=generationContext.d.ts.map