import type { CaipAccountId, CaipChainId, Hex } from '@metamask/utils'; import type { ExternalScopeString } from './types.js'; /** * Determines if a scope string is supported. * * @param scopeString - The scope string to check. * @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. * @returns A boolean indicating if the scope string is supported. */ export declare const isSupportedScopeString: (scopeString: string, { isEvmChainIdSupported, isNonEvmScopeSupported, }: { isEvmChainIdSupported: (chainId: Hex) => boolean; isNonEvmScopeSupported: (scope: CaipChainId) => boolean; }) => boolean; /** * Determines if an account is supported by the wallet (i.e. on a keyring known to the wallet). * * @param account - The CAIP account ID to check. * @param hooks - An object containing the following properties: * @param hooks.getEvmInternalAccounts - A function that returns the EVM internal accounts. * @param hooks.getNonEvmAccountAddresses - A function that returns the supported CAIP-10 account addresses for a non EVM scope. * @returns A boolean indicating if the account is supported by the wallet. */ export declare const isSupportedAccount: (account: CaipAccountId, { getEvmInternalAccounts, getNonEvmAccountAddresses, }: { getEvmInternalAccounts: () => { type: string; address: Hex; }[]; getNonEvmAccountAddresses: (scope: CaipChainId) => string[]; }) => boolean; /** * Determines if a method is supported by the wallet. * * @param scopeString - The scope string to check. * @param method - The method to check. * @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 boolean indicating if the method is supported by the wallet. */ export declare const isSupportedMethod: (scopeString: ExternalScopeString, method: string, { getNonEvmSupportedMethods, }: { getNonEvmSupportedMethods: (scope: CaipChainId) => string[]; }) => boolean; /** * Determines if a notification is supported by the wallet. * * @param scopeString - The scope string to check. * @param notification - The notification to check. * @returns A boolean indicating if the notification is supported by the wallet. */ export declare const isSupportedNotification: (scopeString: ExternalScopeString, notification: string) => boolean; /** * Determines if a session property is supported by the wallet. * * @param property - The property to check. * @returns A boolean indicating if the property is supported by the wallet. */ export declare const isSupportedSessionProperty: (property: string) => boolean; //# sourceMappingURL=supported.d.ts.map