export function useVitessceContainer(ref: any): any;
/**
* Custom hook, gets the full window dimensions.
* @returns {array} `[width, height]` where width and height
* are numbers.
*/
export function useWindowDimensions(): array;
/**
* Custom hook, subscribes to GRID_RESIZE and window resize events.
* @returns {array} `[width, height, containerRef]` where width and height
* are numbers and containerRef is a React ref.
*/
export function useGridItemSize(): array;
/**
* Custom hook, subscribes to GRID_RESIZE and window resize events.
* @returns {array} `[width, height, deckRef]` where width and height
* are numbers and deckRef is a React ref to be used with
* a element (or a forwardRef to one).
*/
export function useDeckCanvasSize(): array;
/**
* This hook handles a boolean isReady value,
* which only returns true once every item in the
* input list has been marked as "ready".
* @param {string[]} statusValues The items to wait on.
* @returns {boolean} Whether the status values are all success.
*/
export function useReady(statusValues: string[]): boolean;
/**
* This hook helps manage a list of URLs.
* @param {(null|object[])[]} urls Array of (null or array of { url, name }).
* @returns {array} An array of { url, name } objects (flattened from the input).
*/
export function useUrls(urls: (null | object[])[]): array;
/**
* Custom hook, subscribes to the width and height of the closest .vitessce-container
* element and updates upon window resize events.
* @param {Ref} ref A React ref object within the `.vitessce-container`.
* @returns {array} `[width, height]` where width and height
* are numbers.
*/
export function useClosestVitessceContainerSize(ref: Ref, sidebarWidth: any): array;
/**
* Normalize an obsFeatureMatrix to a Uint8Array.
* @param {object} params
* @param {object} params.obsFeatureMatrix The obsFeatureMatrix
* returned by the useObsFeatureMatrix hook.
* @returns {array} A tuple [obsFeatureMatrix, dataExtent]
* where obsFeatureMatrix
* is a Uint8Array with the same shape as
* params.obsFeatureMatrix.data, and dataExtent is the
* [min, max] of the original data.
*/
export function useUint8ObsFeatureMatrix({ obsFeatureMatrix }: {
obsFeatureMatrix: object;
}): array;
/**
* Normalize a feature selection (data for selected
* columns of an obsFeatureMatrix) to a Uint8Array.
* @param {Float32Array[] | null} expressionData The expressionData
* returned by the useFeatureSelection hook,
* where each element corresponds to an
* array of values for a selected feature.
* @returns {{
* normData: Uint8Array[] | null,
* extents: [number, number][] | null,
* missing: number[]
* }} An object tuple {normData, extents, missing} where
* normData is an array of Uint8Arrays (or null),
* extents is an array of [min, max] values for each feature (or null), and
* missing is an array of numbers (between 0 and 1) for each feature (or null).
*/
export function useUint8FeatureSelection(expressionData: Float32Array[] | null): {
normData: Uint8Array[] | null;
extents: [number, number][] | null;
missing: number[];
};
export function useExpressionValueGetter({ instanceObsIndex, matrixObsIndex, expressionData }: {
instanceObsIndex: any;
matrixObsIndex: any;
expressionData: any;
}): any;
export function useGetObsMembership(obsSetsMembership: any): any;
export function useGetObsInfo(obsType: any, obsLabelsTypes: any, obsLabelsData: any, obsSetsMembership: any): any;
/**
* This hook expands a featureLabelsMap
* by including mappings from ENSEMBL to HGNC IDs.
* User-provided mappings should take precedence,
* but they are not always provided in the config or contained
* in a column of the AnnData.var dataframe, for example.
* @param {string} featureType A feature type. Fetching is only done for 'gene'.
* @param {Map|null} featureLabelsMap An optional user-supplied feature labels
* mapping from the dataset.
* @returns {{ stripCuriePrefixes: boolean }|null} An options object.
*/
export function useExpandedFeatureLabelsMap(featureType: string, featureLabelsMap: Map | null, options: any): {
stripCuriePrefixes: boolean;
} | null;
/**
* Using a loader object's options,
* return a mapping from group name to column name.
* @param {*} loader obsSets or sampleSets loader class
* @param {[boolean]} reverse Optionally, reverse
* (so, return column name to group name mapping).
* @returns {Record} Mapping from group name to column name.
*/
export function useColumnNameMapping(loader: any, reverse?: [boolean]): Record;
//# sourceMappingURL=hooks.d.ts.map