import { Code, CodeMap, CodeTree, CodeBook, RawCodeBook } from "../types"; export declare function importCodebook(codebook: RawCodeBook): CodeBook; export declare const standardizeCodes: (variable: string, codes: Code[] | string[], fillMissingColor: boolean) => Code[]; export declare const codeBookEdgesToMap: (variable: string, codes: Code[] | string[], fillMissingColor?: boolean) => CodeMap; /** * Transform codeMap into an array of codes. * The different from the original code array (that is used to create the codemap) * is that codes in this array also contain information on their position in the tree (which among other things makes codes searchable by parent/child in dropdown selection) * and that codes are sorted in the order of the tree (first code and all its children/grandchildren, seconcode and all its children/grandchildren, etc.) * @param codeMap * @param showColors * @returns */ export declare const getCodeTreeArray: (codeMap: CodeMap) => CodeTree[];