import * as t from '@babel/types'; import { ParsingConfig } from '../types.js'; import { ParsingOutput } from '../types.js'; import type { SourceCode } from '../../extractSourceCode.js'; /** * Metadata record type */ export type InlineMetadata = { maxChars?: number; context?: string; id?: string; hash?: string; format?: string; filePaths?: string[]; sourceCode?: Record; contextDeriveExpr?: t.Expression; }; /** * Extracts inline metadata from a string entry * @param metadata - The metadata record to inject the data into * @param entry - The string entry to extract the metadata from * @param output - The output to use * @param config - The configuration to use * @returns The inline metadata * * @note - this function does not automatically append the index to the id, this must be done manually in the caller. * */ export declare function extractStringEntryMetadata({ options, output, config, nodeLoc, surroundingLineCount, }: { options?: t.CallExpression['arguments'][number]; output: ParsingOutput; config: ParsingConfig; nodeLoc?: { start?: { line: number; } | null; end?: { line: number; } | null; } | null; surroundingLineCount?: number; }): InlineMetadata;