import { TrextOptions } from '../interfaces';
import { TrextFileResult } from '../types';
/**
 * @file Utilities - addSourceMap
 * @module trext/utils/addSourceMap
 */
/**
 * Adds a `SourceMap` comment to `result.code` if source maps are enabled.
 *
 * @template F - Old file extension name(s)
 * @template T - New file extension name(s)
 *
 * @async
 * @param {TrextOptions<F, T>} options - Trext options
 * @param {TrextFileResult} result - File transformation result
 * @param {{input:string;output:string}} filenames - Filenames map
 * @return {Promise<TrextFileResult>} File transformation result
 */
declare function addSourceMap<F extends string = string, T extends string = string>(options: TrextOptions<F, T>, result: TrextFileResult, filenames: Record<'input' | 'output', string>): Promise<TrextFileResult>;
export default addSourceMap;
//# sourceMappingURL=add-source-map.util.d.ts.map