import type { TOMLArray, TOMLBare, TOMLContentNode, TOMLInlineTable, TOMLKey, TOMLKeyValue, TOMLNode, TOMLProgram, TOMLQuoted, TOMLStringValue, TOMLTable, TOMLTopLevelTable, TOMLValue } from "./ast"; type TOMLContentValue = V | TOMLContentValue[] | TOMLTableValue; type TOMLTableValue = { [key: string]: TOMLContentValue; }; export type ConvertTOMLValue = { (node: TOMLValue): V; (node: TOMLArray): TOMLContentValue[]; (node: TOMLContentNode): TOMLContentValue; (node: TOMLProgram | TOMLTopLevelTable | TOMLTable | TOMLKeyValue | TOMLInlineTable): TOMLTableValue; (node: TOMLStringValue | TOMLBare | TOMLQuoted): string; (node: TOMLKey): string[]; (node: TOMLNode): TOMLContentValue | string | string[]; }; export type GetStaticTOMLValue = ConvertTOMLValue; /** * Gets the static value for the given node. */ export declare const getStaticTOMLValue: GetStaticTOMLValue; /** Generates a converter to convert from a node. */ export declare function generateConvertTOMLValue(convertValue: (node: TOMLValue) => V): ConvertTOMLValue; export {};