import { Moment } from 'moment'; export * from './shared'; import { array, date, Enum, error, func, locale, number, object, url, search, string, validation, dataTypes, stream } from './shared'; /***** Merge shared & Node error handling and export *****/ import * as nodeError from './src/node/node-error'; export * from './src/node/node-error'; export { nodeError }; export { error as errorShared } from './shared'; declare const err: { globalActivateCleanStack: () => void; scrubStackTrace(stack: string, srcFn?: string): string; removeFromStack(stack: string, libsToRm?: string[]): string; getFirstStackItem(stack: string): string; getFirstStackItem(error: T): string; getSecondStackItem(stack: string): string; getSecondStackItem(error: T): string; getThirdStackItem(stack: string): string; getThirdStackItem(error: T): string; }; export { err }; export { err as error }; /***** Export Node-specific modules/namespaces *****/ import * as middleware from './src/node/middleware'; export * from './src/node/middleware'; export { middleware }; export { middleware as middlewares }; export { middleware as mware }; export { middleware as MW }; import * as test from './src/node/test'; export * from './src/node/test'; export { test }; import * as file from './src/node/file'; export * from './src/node/file'; export { file }; import * as expressRouting from './src/node/express-routing'; export * from './src/node/express-routing'; export { expressRouting }; import * as typesIso from './src/types-iso'; export * from './src/node/types-node'; export declare const types: { biologicalSexes: Readonly<{ male: "male"; female: "female"; }>; commonBiologicalSexes: Readonly<{ male: "male"; female: "female"; }>; sexes: Readonly<{ male: "male"; female: "female"; }>; commonSexes: Readonly<{ male: "male"; female: "female"; }>; biologicalSexesWithBoth: Readonly & { both: "both"; }>; commonBiologicalSexesWithBoth: Readonly & { both: "both"; }>; sexesWithBoth: Readonly & { both: "both"; }>; commonSexesWithBoth: Readonly & { both: "both"; }>; sexWithBoth: Readonly & { both: "both"; }>; biologicalSexesWithOther: Readonly & { other: "other"; }>; sexesWithOther: Readonly & { other: "other"; }>; commonSexesWithOther: Readonly & { other: "other"; }>; commonBiologicalSexesWithOther: Readonly & { other: "other"; }>; gender: Readonly & { other: "other"; }>; genderCommon: Readonly & { other: "other"; }>; genderWithBoth: Readonly & { both: "both"; }>; genderCommonWithBoth: Readonly & { both: "both"; }>; genderFull: Readonly & { other: "other"; }> & { transMale: "trans male"; transFemale: "trans female"; genderqueer: "genderqueer"; genderfluid: "genderfluid"; intersex: "intersex"; agender: "agender"; bigender: "bigender"; nonBinary: "nonBinary"; none: "none"; }>; CANProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; CANProvincesOrNone: Readonly & { none: "none"; }>; canadianProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; canadianProvincesOrNone: Readonly & { none: "none"; }>; isUndefined: (value: any) => value is undefined; isNullOrUndefined: (val: any) => val is null; isVoidOrString: (val: any) => val is string; isAlphabeticChar: (val: any, handleAccents?: boolean) => val is T; isAlphaChar: (val: any, handleAccents?: boolean) => val is T; isNumber: (val: any) => val is T; isNum: (val: any) => val is T; isNumberLike: (val: any) => val is T; isNumLike: (val: any) => val is T; isInteger: (val: any) => val is T; isInt: (val: any) => val is T; isIntegerLike: (val: any) => val is T; isIntLike: (val: any) => val is T; isString: (val: any) => val is T; isStringOrNumber: (val: any) => val is string | number | String | Number; isStringOrNum: (val: any) => val is string | number | String | Number; isStrOrNum: (val: any) => val is string | number | String | Number; isBoolean: (val: any) => val is T; isBool: (val: any) => val is T; isDateLike: (val: any) => val is T; isArray: (val: any) => val is T[]; isObject: (val: any, trueForArrays?: boolean) => val is T; isTrue: (val: any, include1CharVal?: boolean) => val is T; isFalse: (val: any, include1CharVal?: boolean) => val is T; isFunction: any>(val: any) => val is T; singleton: (constructor: T) => typesIso.SingletonInterface & T; boolStringToBool: (val: string | boolean, strict?: boolean) => boolean; toBoolFromBoolString: (val: string | boolean, strict?: boolean) => boolean; getType: (val: any, extraArrayDetectCb?: (val: any) => boolean) => typesIso.DataTypesExpanded; } & typeof dataTypes; /********************************************* EXPORT *********************************************/ /** * Top-level mad-utils namespace, containing all child namespaces * Includes all contents of shared module plus node-specific namespaces */ export declare const mUtils: { expressRouting: typeof expressRouting; file: typeof file; middleware: typeof middleware; nodeErr: typeof nodeError; nodeError: typeof nodeError; search: typeof search; stream: typeof stream; test: typeof test; type: { biologicalSexes: Readonly<{ male: "male"; female: "female"; }>; commonBiologicalSexes: Readonly<{ male: "male"; female: "female"; }>; sexes: Readonly<{ male: "male"; female: "female"; }>; commonSexes: Readonly<{ male: "male"; female: "female"; }>; biologicalSexesWithBoth: Readonly & { both: "both"; }>; commonBiologicalSexesWithBoth: Readonly & { both: "both"; }>; sexesWithBoth: Readonly & { both: "both"; }>; commonSexesWithBoth: Readonly & { both: "both"; }>; sexWithBoth: Readonly & { both: "both"; }>; biologicalSexesWithOther: Readonly & { other: "other"; }>; sexesWithOther: Readonly & { other: "other"; }>; commonSexesWithOther: Readonly & { other: "other"; }>; commonBiologicalSexesWithOther: Readonly & { other: "other"; }>; gender: Readonly & { other: "other"; }>; genderCommon: Readonly & { other: "other"; }>; genderWithBoth: Readonly & { both: "both"; }>; genderCommonWithBoth: Readonly & { both: "both"; }>; genderFull: Readonly & { other: "other"; }> & { transMale: "trans male"; transFemale: "trans female"; genderqueer: "genderqueer"; genderfluid: "genderfluid"; intersex: "intersex"; agender: "agender"; bigender: "bigender"; nonBinary: "nonBinary"; none: "none"; }>; CANProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; CANProvincesOrNone: Readonly & { none: "none"; }>; canadianProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; canadianProvincesOrNone: Readonly & { none: "none"; }>; isUndefined: (value: any) => value is undefined; isNullOrUndefined: (val: any) => val is null; isVoidOrString: (val: any) => val is string; isAlphabeticChar: (val: any, handleAccents?: boolean) => val is T; isAlphaChar: (val: any, handleAccents?: boolean) => val is T; isNumber: (val: any) => val is T; isNum: (val: any) => val is T; isNumberLike: (val: any) => val is T; isNumLike: (val: any) => val is T; isInteger: (val: any) => val is T; isInt: (val: any) => val is T; isIntegerLike: (val: any) => val is T; isIntLike: (val: any) => val is T; isString: (val: any) => val is T; isStringOrNumber: (val: any) => val is string | number | String | Number; isStringOrNum: (val: any) => val is string | number | String | Number; isStrOrNum: (val: any) => val is string | number | String | Number; isBoolean: (val: any) => val is T; isBool: (val: any) => val is T; isDateLike: (val: any) => val is T; isArray: (val: any) => val is T[]; isObject: (val: any, trueForArrays?: boolean) => val is T; isTrue: (val: any, include1CharVal?: boolean) => val is T; isFalse: (val: any, include1CharVal?: boolean) => val is T; isFunction: any>(val: any) => val is T; singleton: (constructor: T) => typesIso.SingletonInterface & T; boolStringToBool: (val: string | boolean, strict?: boolean) => boolean; toBoolFromBoolString: (val: string | boolean, strict?: boolean) => boolean; getType: (val: any, extraArrayDetectCb?: (val: any) => boolean) => typesIso.DataTypesExpanded; } & typeof dataTypes; types: { biologicalSexes: Readonly<{ male: "male"; female: "female"; }>; commonBiologicalSexes: Readonly<{ male: "male"; female: "female"; }>; sexes: Readonly<{ male: "male"; female: "female"; }>; commonSexes: Readonly<{ male: "male"; female: "female"; }>; biologicalSexesWithBoth: Readonly & { both: "both"; }>; commonBiologicalSexesWithBoth: Readonly & { both: "both"; }>; sexesWithBoth: Readonly & { both: "both"; }>; commonSexesWithBoth: Readonly & { both: "both"; }>; sexWithBoth: Readonly & { both: "both"; }>; biologicalSexesWithOther: Readonly & { other: "other"; }>; sexesWithOther: Readonly & { other: "other"; }>; commonSexesWithOther: Readonly & { other: "other"; }>; commonBiologicalSexesWithOther: Readonly & { other: "other"; }>; gender: Readonly & { other: "other"; }>; genderCommon: Readonly & { other: "other"; }>; genderWithBoth: Readonly & { both: "both"; }>; genderCommonWithBoth: Readonly & { both: "both"; }>; genderFull: Readonly & { other: "other"; }> & { transMale: "trans male"; transFemale: "trans female"; genderqueer: "genderqueer"; genderfluid: "genderfluid"; intersex: "intersex"; agender: "agender"; bigender: "bigender"; nonBinary: "nonBinary"; none: "none"; }>; CANProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; CANProvincesOrNone: Readonly & { none: "none"; }>; canadianProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; canadianProvincesOrNone: Readonly & { none: "none"; }>; isUndefined: (value: any) => value is undefined; isNullOrUndefined: (val: any) => val is null; isVoidOrString: (val: any) => val is string; isAlphabeticChar: (val: any, handleAccents?: boolean) => val is T; isAlphaChar: (val: any, handleAccents?: boolean) => val is T; isNumber: (val: any) => val is T; isNum: (val: any) => val is T; isNumberLike: (val: any) => val is T; isNumLike: (val: any) => val is T; isInteger: (val: any) => val is T; isInt: (val: any) => val is T; isIntegerLike: (val: any) => val is T; isIntLike: (val: any) => val is T; isString: (val: any) => val is T; isStringOrNumber: (val: any) => val is string | number | String | Number; isStringOrNum: (val: any) => val is string | number | String | Number; isStrOrNum: (val: any) => val is string | number | String | Number; isBoolean: (val: any) => val is T; isBool: (val: any) => val is T; isDateLike: (val: any) => val is T; isArray: (val: any) => val is T[]; isObject: (val: any, trueForArrays?: boolean) => val is T; isTrue: (val: any, include1CharVal?: boolean) => val is T; isFalse: (val: any, include1CharVal?: boolean) => val is T; isFunction: any>(val: any) => val is T; singleton: (constructor: T) => typesIso.SingletonInterface & T; boolStringToBool: (val: string | boolean, strict?: boolean) => boolean; toBoolFromBoolString: (val: string | boolean, strict?: boolean) => boolean; getType: (val: any, extraArrayDetectCb?: (val: any) => boolean) => typesIso.DataTypesExpanded; } & typeof dataTypes; typing: { biologicalSexes: Readonly<{ male: "male"; female: "female"; }>; commonBiologicalSexes: Readonly<{ male: "male"; female: "female"; }>; sexes: Readonly<{ male: "male"; female: "female"; }>; commonSexes: Readonly<{ male: "male"; female: "female"; }>; biologicalSexesWithBoth: Readonly & { both: "both"; }>; commonBiologicalSexesWithBoth: Readonly & { both: "both"; }>; sexesWithBoth: Readonly & { both: "both"; }>; commonSexesWithBoth: Readonly & { both: "both"; }>; sexWithBoth: Readonly & { both: "both"; }>; biologicalSexesWithOther: Readonly & { other: "other"; }>; sexesWithOther: Readonly & { other: "other"; }>; commonSexesWithOther: Readonly & { other: "other"; }>; commonBiologicalSexesWithOther: Readonly & { other: "other"; }>; gender: Readonly & { other: "other"; }>; genderCommon: Readonly & { other: "other"; }>; genderWithBoth: Readonly & { both: "both"; }>; genderCommonWithBoth: Readonly & { both: "both"; }>; genderFull: Readonly & { other: "other"; }> & { transMale: "trans male"; transFemale: "trans female"; genderqueer: "genderqueer"; genderfluid: "genderfluid"; intersex: "intersex"; agender: "agender"; bigender: "bigender"; nonBinary: "nonBinary"; none: "none"; }>; CANProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; CANProvincesOrNone: Readonly & { none: "none"; }>; canadianProvinces: Readonly<{ on: "Ontario"; qc: "Quebec"; nb: "New Brunswick"; ns: "Nova Scotia"; pe: "Prince Edward Island"; mb: "Manitoba"; sk: "Saskatchewan"; bc: "British Columbia"; nt: "Northwest Territories"; nu: "Nunavut"; yt: "Yukon Territory"; ab: "Alberta"; nl: "Newfoundland and Labrador"; }>; canadianProvincesOrNone: Readonly & { none: "none"; }>; isUndefined: (value: any) => value is undefined; isNullOrUndefined: (val: any) => val is null; isVoidOrString: (val: any) => val is string; isAlphabeticChar: (val: any, handleAccents?: boolean) => val is T; isAlphaChar: (val: any, handleAccents?: boolean) => val is T; isNumber: (val: any) => val is T; isNum: (val: any) => val is T; isNumberLike: (val: any) => val is T; isNumLike: (val: any) => val is T; isInteger: (val: any) => val is T; isInt: (val: any) => val is T; isIntegerLike: (val: any) => val is T; isIntLike: (val: any) => val is T; isString: (val: any) => val is T; isStringOrNumber: (val: any) => val is string | number | String | Number; isStringOrNum: (val: any) => val is string | number | String | Number; isStrOrNum: (val: any) => val is string | number | String | Number; isBoolean: (val: any) => val is T; isBool: (val: any) => val is T; isDateLike: (val: any) => val is T; isArray: (val: any) => val is T[]; isObject: (val: any, trueForArrays?: boolean) => val is T; isTrue: (val: any, include1CharVal?: boolean) => val is T; isFalse: (val: any, include1CharVal?: boolean) => val is T; isFunction: any>(val: any) => val is T; singleton: (constructor: T) => typesIso.SingletonInterface & T; boolStringToBool: (val: string | boolean, strict?: boolean) => boolean; toBoolFromBoolString: (val: string | boolean, strict?: boolean) => boolean; getType: (val: any, extraArrayDetectCb?: (val: any) => boolean) => typesIso.DataTypesExpanded; } & typeof dataTypes; array: typeof array; /** * Top-level mad-utils namespace, containing all child namespaces * Includes all contents of shared module plus node-specific namespaces */ date: typeof date; commonDataTypes: typeof dataTypes; dataTypes: typeof dataTypes; enum: typeof Enum; Enum: typeof Enum; err: typeof error; error: typeof error; find: typeof search; func: typeof func; function: typeof func; functionUtils: typeof func; genericDataTypes: typeof dataTypes; isNode: any; locale: typeof locale; math: typeof number; num: typeof number; number: typeof number; numeric: typeof number; object: typeof object; url: typeof url; srch: typeof search; stacktrace: typeof error; str: typeof string; string: typeof string; validation: typeof validation; }; export { mUtils as __ }; export { mUtils as m_ }; export { mUtils as madUtils };