/* tslint:disable */
/* eslint-disable */

/**
 * Add a cluster of particles near (cx, cy).
 */
export function add_cluster(cx: number, cy: number, count: number, radius: number): void;

export function get_count(): number;

export function get_h(): number;

/**
 * Return flat `[x1,y1,x2,y2,...]` array.
 */
export function get_particles(): Float64Array;

export function get_w(): number;

/**
 * Create `count` random particles within bounds.
 */
export function init_particles(count: number, width: number, height: number): void;

/**
 * Advance one physics step. `gravity` suggested: 200-2000, `damping`: 0.99-1.0.
 */
export function step_particles(dt: number, gravity: number, damping: number): void;

export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

export interface InitOutput {
    readonly memory: WebAssembly.Memory;
    readonly add_cluster: (a: number, b: number, c: number, d: number) => void;
    readonly get_count: () => number;
    readonly get_h: () => number;
    readonly get_particles: () => [number, number];
    readonly get_w: () => number;
    readonly init_particles: (a: number, b: number, c: number) => void;
    readonly step_particles: (a: number, b: number, c: number) => void;
    readonly __wbindgen_externrefs: WebAssembly.Table;
    readonly __wbindgen_free: (a: number, b: number, c: number) => void;
    readonly __wbindgen_start: () => void;
}

export type SyncInitInput = BufferSource | WebAssembly.Module;

/**
 * Instantiates the given `module`, which can either be bytes or
 * a precompiled `WebAssembly.Module`.
 *
 * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
 *
 * @returns {InitOutput}
 */
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;

/**
 * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
 * for everything else, calls `WebAssembly.instantiate` directly.
 *
 * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
 *
 * @returns {Promise<InitOutput>}
 */
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
