import { TgdTypeArrayForElements } from "../types";
/**
 * drawElements() can be used with 8, 16 or 32 unsinged ints arrays.
 * But the function does not know what type was passed as argument.
 * You need to specify the type: UNSIGNED_BYTE, UNSIGNED_SHORT or
 * UNSIGNED_INT.
 *
 * This helper function gives you the type of the array passed as argument.
 */
export declare function webglElementTypeFromTypedArray(typedArray: TgdTypeArrayForElements): 5121 | 5123 | 5125;
/**
 * @returns A type array that uses the less possible space in memory.
 *
 * For instance, if `arr` has no value above 255, we can return `Uint8Array`
 * because a byte will suffice to store each value.
 */
export declare function webglElementTypeArrayFromNumberArray(arr: number[]): Uint8Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer>;
export declare function webglTypedArrayFromBufferSource(bufferSource: BufferSource, type: number): Float32Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Int16Array<ArrayBuffer>;
export declare function webglLookup(type: number | keyof WebGL2RenderingContext): keyof WebGL2RenderingContext;
//# sourceMappingURL=webgl.d.ts.map