import type { ExternalScopeObject, ExternalScopesObject, InternalScopesObject, NormalizedScopeObject, NormalizedScopesObject } from './types.js'; /** * Returns a list of unique items * * @param list - The list of items to filter * @returns A list of unique items */ export declare const getUniqueArrayItems: (list: Value[]) => Value[]; /** * Normalizes a ScopeString and ExternalScopeObject into a separate * InternalScopeString and NormalizedScopeObject for each reference in the `references` * value if defined and adds an empty `accounts` array if not defined. * * @param scopeString - The string representing the scope * @param externalScopeObject - The object that defines the scope * @returns a map of caipChainId to ScopeObjects */ export declare const normalizeScope: (scopeString: string, externalScopeObject: ExternalScopeObject) => NormalizedScopesObject; /** * Merges two NormalizedScopeObjects * * @param scopeObjectA - The first scope object to merge. * @param scopeObjectB - The second scope object to merge. * @returns The merged scope object. */ export declare const mergeScopeObject: (scopeObjectA: NormalizedScopeObject, scopeObjectB: NormalizedScopeObject) => NormalizedScopeObject; /** * Merges two NormalizedScopeObjects * * @param scopeA - The first normalized scope object to merge. * @param scopeB - The second normalized scope object to merge. * @returns The merged normalized scope object from the [CAIP-25](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-25.md) request. */ export declare const mergeNormalizedScopes: (scopeA: NormalizedScopesObject, scopeB: NormalizedScopesObject) => NormalizedScopesObject; /** * Merges two InternalScopeObjects * * @param scopeA - The first internal scope object to merge. * @param scopeB - The second internal scope object to merge. * @returns The merged internal scope object from the [CAIP-25](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-25.md) request. */ export declare const mergeInternalScopes: (scopeA: InternalScopesObject, scopeB: InternalScopesObject) => InternalScopesObject; /** * Normalizes and merges a set of ExternalScopesObjects into a NormalizedScopesObject (i.e. a set of NormalizedScopeObjects where references are flattened). * * @param scopes - The external scopes to normalize and merge. * @returns The normalized and merged scopes. */ export declare const normalizeAndMergeScopes: (scopes: ExternalScopesObject) => NormalizedScopesObject; //# sourceMappingURL=transform.d.ts.map