// Copyright BigchainDB GmbH and BigchainDB contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 declare type FilterFn = (val: any, key?: string) => void; declare function filterFromObject>( obj: I, filter: Array | FilterFn, conf: { isInclusion?: boolean } ): Partial; declare function applyFilterOnObject>( obj: I, filterFn?: FilterFn ): Partial; declare function selectFromObject>( obj: I, filter: Array | FilterFn ): Partial; export default function sanitize>( obj: I ): Partial | I;