/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #import NS_ASSUME_NONNULL_BEGIN /** Prepares an element dictionary, which could be then used in hybrid W3C/JWP responses @param element Either element identifier or element object itself @returns The resulting dictionary */ NSDictionary *FBToElementDict(id element); /** Extracts element uuid from dictionary @param src The source dictionary @returns The resulting element or nil if no element keys are found */ id _Nullable FBExtractElement(NSDictionary *src); /** Cleanup items having element keys from the dictionary @param src The source dictionary @returns The resulting dictionary */ NSDictionary *FBCleanupElements(NSDictionary *src); /** Parses key/value pairs of valid W3C capabilities @param caps The source capabilitites dictionary @param error Is set if there was an error while parsing the source capabilities @returns Parsed capabilitites mapping or nil in case of failure */ NSDictionary *_Nullable FBParseCapabilities(NSDictionary *caps, NSError **error); NS_ASSUME_NONNULL_END