/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import type { CompiledStyles } from '../common-types'; type AnyObject = { readonly [$$Key$$: string]: unknown }; export declare function isPlainObject(obj: unknown): obj is AnyObject; export declare function flattenObject(obj: CompiledStyles): { readonly [$$Key$$: string]: null | string; }; type _ObjectEntries = { [Key in keyof Obj]: [Key, Obj[Key]]; }; type ObjectEntries = _ObjectEntries[keyof _ObjectEntries]; export declare function objEntries< Obj extends { readonly [$$Key$$: string]: unknown }, >(obj: Obj): ReadonlyArray>; export declare function objValues< Obj extends { readonly [$$Key$$: string]: unknown }, >(obj: Obj): ReadonlyArray; export declare function objFromEntries( entries: ReadonlyArray>, ): { [$$Key$$ in K]: V }; export declare function objMapKeys< V, K1 extends string = string, K2 extends string = string, >( obj: { readonly [$$Key$$ in K1]: V }, mapper: ($$PARAM_0$$: K1) => K2, ): { readonly [$$Key$$ in K2]: V }; export declare function objMapEntry< V, V2, K1 extends string = string, K2 extends string = string, >( obj: { readonly [$$Key$$ in K1]: V }, mapper: ($$PARAM_0$$: Readonly<[K1, V]>) => Readonly<[K2, V2]>, ): { readonly [$$Key$$ in K2]: V2 }; export declare function objMap( obj: { readonly [$$Key$$ in K]: V }, mapper: ($$PARAM_0$$: V, $$PARAM_1$$: K) => V2, ): { readonly [$$Key$$ in K]: V2 }; export declare class Pipe { value: T; constructor(val: T); pipe(mapper: ($$PARAM_0$$: T) => T2): Pipe; done(): T; static create(val: T): Pipe; } export declare const arraySort: ( arr: ReadonlyArray, fn?: ($$PARAM_0$$: T, $$PARAM_1$$: T) => number, ) => ReadonlyArray; export declare type arraySort = typeof arraySort; export declare const arrayEquals: ( arr1: ReadonlyArray, arr2: ReadonlyArray, equals?: ($$PARAM_0$$: T, $$PARAM_1$$: T) => boolean, ) => boolean; export declare type arrayEquals = typeof arrayEquals;