import S from './sanitised.js'; /** * @returns automatically sanitised value. * * Already sanitised values are returned as is. * * `undefined` and `null` return sanitised `null`. * * Finite numbers return sanitised, decimal numbers. * * Booleans return sanitised `1` (true) or `0` (false). * * Strings return sanitised unicode strings, ie. `N'foo'`. * * Dates return ISO strings. * * Buffers return hex literals. * * Other objects return json-stringified, sanitised unicode strings, ie. `{foo:1}` returns `N'{"foo":1}'`. * * @throws {TypeError} for non-finite numbers (not supported by mssql). * * @throws {TypeError} for all other values. */ export declare const auto: (value: unknown) => S; export default auto;