import { GLSLFunctionSource } from "./glsl"; export declare function sleep(ms: number): Promise; export declare function printError(error: Error | string, fnStr: string, tag: string): void; export declare function strToLines(str?: string, eLine?: number, gap?: number): string; export declare function minifyCode(source: string): string; export declare function glslFn(name: string): GLSLFunctionSource; export declare function trimSource(source: string): string; export declare function mod(a: any, b: any): number; export declare function map(value: number, inputMin: number, inputMax: number, outputMin: number, outputMax: number): number; /** * * @param count * @returns [columns, rows] */ export declare function gridSize(count: any): [number, number]; export declare function ucfirst(str: string): string; export declare function getFilenameFromPath(path: string): string; export declare function array(length: number | [number, number], mapfn?: (v: unknown, k: number) => any): any[]; export declare function rand(min?: number, max?: number, decimals?: number): number; export declare function texCoords([columns, rows]: [number, number]): Float32Array; export declare function imageToCanvas(image: HTMLImageElement | HTMLCanvasElement, dstWidth?: number, dstHeight?: number, imageOffsetX?: number, imageOffsetY?: number, srcWidth?: number, srcHeight?: number): HTMLCanvasElement; export declare function toSource(obj: any): string; export declare function nameOrProps(props?: any): any;