import { WeakValueMap } from '../helpers/helpers.ts'; import { type sint, UOp } from '../ops.ts'; export declare const canonicalize_strides: (shape: sint[], strides: sint[]) => sint[]; export declare const strides_for_shape: (shape: sint[]) => sint[]; export declare const merge_dims: (shape: sint[], strides: sint[], mask?: [sint, sint][] | undefined) => [sint, sint, sint][]; export declare const _reshape_mask: (_mask: [sint, sint][] | undefined, old_shape: sint[], new_shape: sint[]) => [sint, sint][] | undefined; export declare const unravel: (shape: sint[], offset: sint) => sint[]; export declare class View { shape: sint[]; strides: sint[]; offset: sint; mask?: [sint, sint][] | undefined; contiguous?: boolean | undefined; _id: bigint; static cache: WeakValueMap; constructor(shape: sint[], strides: sint[], offset: sint, mask?: [sint, sint][] | undefined, contiguous?: boolean | undefined); toString(): string; to_indexed_uops(_idxs?: UOp[], vexpr?: UOp): [UOp, UOp]; size: () => number; static create: (shape: sint[], strides?: sint[] | undefined, offset?: sint | undefined, mask?: [sint, sint][] | undefined) => View; vars: () => UOp[]; unbind: () => [View, Map]; add: (vm1: View) => View | undefined; invert: (out_shape: sint[]) => View | undefined; minify: () => View; __unsafe_resize(arg: [sint, sint][], mask?: [sint, sint][]): View; pad: (arg: [sint, sint][]) => View; shrink: (arg: [sint, sint][]) => View; expand: (new_shape: sint[]) => View; permute: (axis: number[]) => View; stride: (multi: number[]) => View; reshape: (new_shape: sint[]) => View | undefined; }