import * as types from "./types"; import * as utils from "./utils"; export { C14nCanonicalization, C14nCanonicalizationWithComments } from "./c14n-canonicalization"; export { ExclusiveCanonicalization, ExclusiveCanonicalizationWithComments, } from "./exclusive-canonicalization"; export { SignedXml } from "./signed-xml"; export * from "./types"; export { findAncestorNs, normalizePem, pemCertificates, pemToDer, toPem } from "./utils"; /** * @deprecated Will be removed in 7.0. Write a signature algorithm's methods without a callback, * and give it `getSignatureAsync()` and `verifySignatureAsync()` if it works asynchronously. */ export declare const createOptionalCallbackFunction: typeof types.createOptionalCallbackFunction; /** * @deprecated Will be removed in 7.0, with the callback form of `computeSignature()` and * `checkSignature()`. `computeSignatureAsync()` and `checkSignatureAsync()` return a promise. */ export type ErrorFirstCallback = types.ErrorFirstCallback; /** * @deprecated Will be removed in 7.0. This is an internal predicate with no replacement; use * `Array.isArray(x) && x.length > 0`. */ export declare const isArrayHasLength: typeof utils.isArrayHasLength; /** * @deprecated Will be removed in 7.0. This is an internal DOM helper with no replacement; use a * DOM API or the `xpath` package. */ export declare const findAttr: typeof utils.findAttr; /** * @deprecated Will be removed in 7.0. This is an internal DOM helper with no replacement; use a * DOM API or the `xpath` package. */ export declare const findChildren: typeof utils.findChildren; /** * @deprecated Will be removed in 7.0. This is an internal DOM helper with no replacement; use a * DOM API or the `xpath` package. */ export declare const findChilds: typeof utils.findChilds; /** * @deprecated Will be removed in 7.0. This is an internal DOM helper with no replacement; * compare `parentNode` yourself, or use `Node.contains()` where the DOM provides it. */ export declare const isDescendantOf: typeof utils.isDescendantOf; /** * @deprecated Will be removed in 7.0. This is the attribute-escaping step of this package's * canonicalizers; use `C14nCanonicalization` or `ExclusiveCanonicalization` instead. A custom * canonicalizer must apply C14N escaping itself: https://www.w3.org/TR/xml-c14n#ProcessingModel */ export declare const encodeSpecialCharactersInAttribute: typeof utils.encodeSpecialCharactersInAttribute; /** * @deprecated Will be removed in 7.0. This is the text-escaping step of this package's * canonicalizers; use `C14nCanonicalization` or `ExclusiveCanonicalization` instead. A custom * canonicalizer must apply C14N escaping itself: https://www.w3.org/TR/xml-c14n#ProcessingModel */ export declare const encodeSpecialCharactersInText: typeof utils.encodeSpecialCharactersInText; /** * @deprecated Will be removed in 7.0. Decode both digests from base64, then compare them with * `a.length === b.length && crypto.timingSafeEqual(a, b)`: `timingSafeEqual` alone throws on a * length mismatch instead of returning `false`. Do not compare them with `===`. */ export declare const validateDigestValue: typeof utils.validateDigestValue; /** * @deprecated Will be removed in 7.0. Renamed to `toPem()`, which is what it has always done: * its input is a PEM message, several of them, base64, or a Buffer of either PEM or DER. */ export declare const derToPem: typeof utils.toPem; /** @deprecated Will be removed in 7.0. This is an internal parsing detail with no replacement. */ export declare const PEM_FORMAT_REGEX: RegExp; /** @deprecated Will be removed in 7.0. This is an internal parsing detail with no replacement. */ export declare const EXTRACT_X509_CERTS: RegExp; /** @deprecated Will be removed in 7.0. This is an internal parsing detail with no replacement. */ export declare const BASE64_REGEX: RegExp;