export function square(x: any, y: any, r: any): any[][];
/**
 * Get a representative PixelSource from a loader object returned from
 * the Vitessce imaging loaders
 * @param {object} loader { data: (PixelSource[]|PixelSource), metadata, channels } object
 * @param {number=} level Level of the multiscale loader from which to get a PixelSource
 * @returns {object} PixelSource object
 */
export function getSourceFromLoader(loader: object, level?: number | undefined): object;
/**
 * Helper method to determine whether pixel data is interleaved and rgb or not.
 * @param {object} loader
 * @param {array|null} channels
 */
export function isRgb(loader: object, channels: array | null): boolean;
export function physicalSizeToMatrix(xSize: any, ySize: any, zSize: any, xUnit: any, yUnit: any, zUnit: any): Matrix4;
/**
 * @param {Array.<number>} shape loader shape
 */
export function isInterleaved(shape: Array<number>): boolean;
/**
 * Initialize the channel selections for an individual layer.
 * @param {object} loader A viv loader instance with channel names appended by Vitessce loaders
 * of the form { data: (PixelSource[]|PixelSource), metadata: Object, channels }
 * @returns {object[]} An array of selected channels with default
 * domain/slider settings.
 */
export function initializeLayerChannels(loader: object, use3d: any): object[];
/**
 * Given a set of image layer loader creator functions,
 * create loader objects for an initial layer or set of layers,
 * which will be selected based on default values predefined in
 * the image data file or otherwise by a heuristic
 * (the midpoint of the layers array).
 * @param {object[]} rasterLayers A list of layer metadata objects with
 * shape { name, type, url, createLoader }.
 * @param {(string[]|null)} rasterRenderLayers A list of default raster layers. Optional.
 */
export function initializeRasterLayersAndChannels(rasterLayers: object[], rasterRenderLayers: (string[] | null), usePhysicalSizeScaling: any): Promise<any[]>;
export function getNgffAxes(firstMultiscalesAxes: any): {
    type: string;
    name: string;
}[];
export function getNgffAxesForTiff(dimOrder: any): any;
/**
 * Convert an array of coordinateTransformations objects to a 16-element
 * plain JS array using Matrix4 linear algebra transformation functions.
 * @param {object[]|undefined} coordinateTransformations List of objects matching the
 * OME-NGFF v0.4 coordinateTransformations spec.
 * @param {object[]|undefined} axes Axes in OME-NGFF v0.4 format, objects
 * with { type, name }.
 * @returns {Matrix4} Array of 16 numbers representing the Matrix4.
 */
export function coordinateTransformationsToMatrix(coordinateTransformations: object[] | undefined, axes: object[] | undefined): Matrix4;
export function hexToRgb(hex: any): number[];
/**
 * Normalize coordinate transformations to the OME-NGFF v0.4 format,
 * despite potentially being in the new format proposed in
 * https://github.com/ome/ngff/pull/138 (As of 2023-09-02).
 * @param {object[]|undefined} coordinateTransformations Value of
 * multiscales[0].coordinateTransformations in either OME-NGFF v0.4 format
 * or that proposed in https://github.com/ome/ngff/pull/138.
 * @param {object[]} datasets Value of multiscales[0].datasets in OME-NGFF v0.4 format.
 * @returns {object[]} Array of coordinateTransformations in OME-NGFF v0.4 format.
 */
export function normalizeCoordinateTransformations(coordinateTransformations: object[] | undefined, datasets: object[]): object[];
export const GLOBAL_LABELS: string[];
export const DEFAULT_RASTER_DOMAIN_TYPE: "Min/Max";
export namespace DEFAULT_RASTER_LAYER_PROPS {
    export const visible: boolean;
    export const colormap: null;
    export const opacity: number;
    export { DEFAULT_RASTER_DOMAIN_TYPE as domainType };
    export const transparentColor: number[];
    export const renderingMode: viv.RENDERING_MODES;
    export const use3d: boolean;
}
export namespace DEFAULT_MOLECULES_LAYER {
    const opacity_1: number;
    export { opacity_1 as opacity };
    export const radius: number;
    const visible_1: boolean;
    export { visible_1 as visible };
}
export namespace DEFAULT_CELLS_LAYER {
    const opacity_2: number;
    export { opacity_2 as opacity };
    const radius_1: number;
    export { radius_1 as radius };
    const visible_2: boolean;
    export { visible_2 as visible };
    export const stroked: boolean;
}
export namespace DEFAULT_NEIGHBORHOODS_LAYER {
    const visible_3: boolean;
    export { visible_3 as visible };
}
export const DEFAULT_LAYER_TYPE_ORDERING: string[];
export function getStatsForResolution(loader: any, resolution: any): {
    height: any;
    width: any;
    depthDownsampled: number;
    totalBytes: number;
};
export function canLoadResolution(loader: any, resolution: any): boolean;
import { Matrix4 } from ".pnpm/@math.gl+core@3.6.3/node_modules/@math.gl/core";
import { viv } from "@vitessce/gl";
//# sourceMappingURL=spatial.d.ts.map