@diplodoc/translation
Version:
markdown translation utilities
19 lines (18 loc) • 523 B
TypeScript
import type { JSONType, KeywordCxt } from 'ajv';
import type { Hash } from 'src/hash';
import type { ConsumerOptions } from 'src/consumer';
declare function extract(hash: Hash, options: ConsumerOptions): {
keyword: string;
type: JSONType[];
code: (cxt: KeywordCxt) => void;
};
declare function compose(units: string[]): {
keyword: string;
type: JSONType[];
code: (cxt: KeywordCxt) => void;
};
export declare const translate: {
extract: typeof extract;
compose: typeof compose;
};
export {};