export declare enum ReadStatError { OK = 0, ERROR_OPEN = 1, ERROR_READ = 2, ERROR_MALLOC = 3, ERROR_USER_ABORT = 4, ERROR_PARSE = 5, ERROR_UNSUPPORTED_COMPRESSION = 6, ERROR_UNSUPPORTED_CHARSET = 7, ERROR_COLUMN_COUNT_MISMATCH = 8, ERROR_ROW_COUNT_MISMATCH = 9, ERROR_ROW_WIDTH_MISMATCH = 10, ERROR_BAD_FORMAT_STRING = 11, ERROR_VALUE_TYPE_MISMATCH = 12, ERROR_WRITE = 13, ERROR_WRITER_NOT_INITIALIZED = 14, ERROR_SEEK = 15, ERROR_CONVERT = 16, ERROR_CONVERT_BAD_STRING = 17, ERROR_CONVERT_SHORT_STRING = 18, ERROR_CONVERT_LONG_STRING = 19, ERROR_NUMERIC_VALUE_IS_OUT_OF_RANGE = 20, ERROR_TAGGED_VALUE_IS_OUT_OF_RANGE = 21, ERROR_STRING_VALUE_IS_TOO_LONG = 22, ERROR_TAGGED_VALUES_NOT_SUPPORTED = 23, ERROR_UNSUPPORTED_FILE_FORMAT_VERSION = 24, ERROR_NAME_BEGINS_WITH_ILLEGAL_CHARACTER = 25, ERROR_NAME_CONTAINS_ILLEGAL_CHARACTER = 26, ERROR_NAME_IS_RESERVED_WORD = 27, ERROR_NAME_IS_TOO_LONG = 28, ERROR_BAD_TIMESTAMP_STRING = 29, ERROR_BAD_FREQUENCY_WEIGHT = 30, ERROR_TOO_MANY_MISSING_VALUE_DEFINITIONS = 31, ERROR_NOTE_IS_TOO_LONG = 32, ERROR_STRING_REFS_NOT_SUPPORTED = 33, ERROR_STRING_REF_IS_REQUIRED = 34, ERROR_ROW_IS_TOO_WIDE_FOR_PAGE = 35, ERROR_TOO_FEW_COLUMNS = 36, ERROR_TOO_MANY_COLUMNS = 37, ERROR_NAME_IS_ZERO_LENGTH = 38, ERROR_BAD_TIMESTAMP_VALUE = 39, ERROR_BAD_MR_STRING = 40 } export declare function readstatErrorMessage(code: ReadStatError): string | null; /** Exception thrown to unwind out of the parsing/writing loop, carrying an error code. */ export declare class ReadStatException extends Error { code: ReadStatError; constructor(code: ReadStatError, message?: string); } /** Throw when `code` is not OK. */ export declare function check(code: ReadStatError): void;