flipper-common
Version:
Server & UI shared Flipper utilities
36 lines • 1.12 kB
TypeScript
/**
* 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.
*
* @format
*/
import { ClientQuery, UninitializedClient } from './server-types';
export type ClientIdConstituents = {
app: string;
os: string;
device: string;
device_id: string;
};
type PluginKeyConstituents = {
type: 'device';
pluginName: string;
client: string;
} | ({
type: 'client';
pluginName: string;
client: string;
} & ClientIdConstituents);
export declare function buildClientId(clientInfo: {
app: string;
os: string;
device: string;
device_id: string;
}): string;
export declare function buildGenericClientId(client: UninitializedClient): string;
export declare function buildGenericClientIdFromQuery(clientQuery: ClientQuery): string;
export declare function deconstructClientId(clientId: string): ClientIdConstituents;
export declare function deconstructPluginKey(pluginKey: string): PluginKeyConstituents;
export {};
//# sourceMappingURL=clientUtils.d.ts.map