import type { CaipChainId, Hex } from '@metamask/utils'; import type { NormalizedScopesObject } from './types.js'; /** * Groups a NormalizedScopesObject into two separate * NormalizedScopesObject with supported scopes in one * and unsupported scopes in the other. * * @param scopes - The NormalizedScopesObject to group. * @param hooks - An object containing the following properties: * @param hooks.isEvmChainIdSupported - A predicate that determines if an EVM chainID is supported. * @param hooks.isNonEvmScopeSupported - A predicate that determines if an non EVM scopeString is supported. * @param hooks.getNonEvmSupportedMethods - A function that returns the supported methods for a non EVM scope. * @returns The supported and unsupported scopes. */ export declare const bucketScopesBySupport: (scopes: NormalizedScopesObject, { isEvmChainIdSupported, isNonEvmScopeSupported, getNonEvmSupportedMethods, }: { isEvmChainIdSupported: (chainId: Hex) => boolean; isNonEvmScopeSupported: (scope: CaipChainId) => boolean; getNonEvmSupportedMethods: (scope: CaipChainId) => string[]; }) => { supportedScopes: NormalizedScopesObject; unsupportedScopes: NormalizedScopesObject; }; /** * Returns a NormalizedScopesObject with * unsupported methods and notifications removed from scopeObjects. * * @param scopes - The NormalizedScopesObject to filter. * @param hooks - An object containing the following properties: * @param hooks.getNonEvmSupportedMethods - A function that returns the supported methods for a non EVM scope. * @returns a NormalizedScopesObject with only methods, and notifications that are currently supported. */ export declare const getSupportedScopeObjects: (scopes: NormalizedScopesObject, { getNonEvmSupportedMethods, }: { getNonEvmSupportedMethods: (scope: CaipChainId) => string[]; }) => NormalizedScopesObject; //# sourceMappingURL=filter.d.ts.map