UNPKG

@diplodoc/translation

Version:
16 lines (15 loc) 553 B
import type { TemplateOptions } from 'src/xliff'; import type { SkeletonOptions } from 'src/skeleton'; export type ExtractOptions = TemplateOptions & SkeletonOptions; export type ExtractOutput = { skeleton: string; xliff: string; units: string[]; }; export type ComposeOptions = { useSource?: boolean; }; export declare function extract(content: string, options: ExtractOptions): ExtractOutput; export declare function compose(skeleton: string, xliff: string | string[], { useSource }: { useSource?: boolean | undefined; }): string;