import { declare } from "@babel/helper-plugin-utils"; import { SourceLocation } from "@babel/types"; import { PluginTarget } from "@babel/core"; interface MessageDescriptor { id: string; defaultMessage?: string; description?: string; } interface State { messages: ExtractedMessageDescriptor[]; meta: Record; componentNames: string[]; functionNames: string[]; } type ExtractedMessageDescriptor = MessageDescriptor & Partial & { file?: string; }; interface Options { overrideIdFn?: (id?: string, defaultMessage?: string, description?: string, filePath?: string) => string; onMsgExtracted?: (filePath: string, msgs: MessageDescriptor[]) => void; onMetaExtracted?: (filePath: string, meta: Record) => void; idInterpolationPattern?: string; removeDefaultMessage?: boolean; additionalComponentNames?: string[]; additionalFunctionNames?: string[]; pragma?: string; extractSourceLocation?: boolean; ast?: boolean; preserveWhitespace?: boolean; flatten?: boolean; throws?: boolean; onMsgError?: (filePath: string, error: Error) => void; } export type ExtractionResult> = { messages: ExtractedMessageDescriptor[]; meta: M; }; export declare const DEFAULT_ID_INTERPOLATION_PATTERN = "[sha512:contenthash:base64:6]"; type FormatJSPlugin = PluginTarget & ReturnType>; declare const plugin: FormatJSPlugin; export { plugin as default }; //# sourceMappingURL=index.d.ts.map