UNPKG

amazon-route-53-dns-zone-file

Version:

Makes DNS Zone File easy. Parses and validates BIND zone files and can be extended for custom features. Functionality is modular. Features are made open for extension and closed for runtime mutation. Written in TypeScript.

25 lines 1.63 kB
import { ZoneRecordTypings as RecordTypings } from '../shared/types_domain_specific'; import { RecordType } from '../shared/constants_domain_specific'; import { ParserTypings, ParsingRecordDataType } from './types_parser'; /** * @idea we can include this in validation so it can be extended * @note this uses Lengths type (everything after nameAndTtl) * @throws {ParserInvalidArgumentsError} with invalid input lengths */ export declare const assertRecordLengths: (recordType: RecordType, valuesLength: number, minLength: number, maxLength: number) => void; export declare const parsers: { readonly NS: import("./utils_parser").ZipObjFnType<RecordTypings.NS>; readonly A: import("./utils_parser").ZipObjFnType<RecordTypings.A>; readonly AAAA: import("./utils_parser").ZipObjFnType<RecordTypings.AAAA>; readonly CNAME: import("./utils_parser").ZipObjFnType<RecordTypings.CNAME>; readonly MX: import("./utils_parser").ZipObjFnType<RecordTypings.MX>; readonly TXT: import("./utils_parser").ZipObjFnType<RecordTypings.TXT>; readonly PTR: import("./utils_parser").ZipObjFnType<RecordTypings.PTR>; readonly SRV: import("./utils_parser").ZipObjFnType<RecordTypings.SRV>; readonly NAPTR: import("./utils_parser").ZipObjFnType<RecordTypings.NAPTR>; readonly SPF: import("./utils_parser").ZipObjFnType<RecordTypings.SPF>; readonly CAA: import("./utils_parser").ZipObjFnType<RecordTypings.CAA>; readonly SOA: (x: Omit<ParsingRecordDataType, 'name' | 'previousName'>) => RecordTypings.SOA; }; export declare const visitors: ParserTypings.Visitor[]; //# sourceMappingURL=visitors.d.ts.map