/** * Error message indicating missing data, used to detect missing storage items. * Added in https://github.com/envoy/envoy-integrations-sdk-nodejs/blob/v2.3.1/src/base/EnvoyAPI.ts#L79 */ export declare const EMPTY_STORAGE_ERROR_MESSAGE = "The data you are looking for may not exist"; export declare function ensureError(value: unknown): Error; /** * Check whether an error is due to an item not existing in Envoy. * Certain Envoy operations (notably storage ones) throw an error when an item does not exist, though * non-existence may be expected. Currently, the best way to identify this case is the error message. * @param error - The error to check. * @returns True if the error is likely due to a missing storage item, false otherwise. */ export declare function isEmptyStorageError(error: Error): boolean; //# sourceMappingURL=errorHandling.d.ts.map