/* tslint:disable */
/* eslint-disable */
/**
*/
export function init_console_tracing(): void;
/**
*/
export function init_panic_handler(): void;
/**
*/
export class WasmResultTable {
  free(): void;
/**
* @returns {(string)[]}
*/
  column_names(): (string)[];
/**
* @returns {number}
*/
  num_rows(): number;
/**
* @param {number} col
* @param {number} row
* @returns {string}
*/
  format_cell(col: number, row: number): string;
}
/**
*/
export class WasmResultTables {
  free(): void;
/**
* @returns {(WasmResultTable)[]}
*/
  get_tables(): (WasmResultTable)[];
/**
* @returns {number}
*/
  len(): number;
}
/**
*/
export class WasmSession {
  free(): void;
/**
* @returns {WasmSession}
*/
  static try_new(): WasmSession;
/**
* @param {string} sql
* @returns {Promise<WasmResultTables>}
*/
  query(sql: string): Promise<WasmResultTables>;
/**
* @param {string} name
* @param {Uint8Array} content
*/
  register_file(name: string, content: Uint8Array): void;
/**
* Return a list of registered file names.
*
* Names will be sorted alphabetically.
* @returns {(string)[]}
*/
  list_local_files(): (string)[];
/**
* @returns {string}
*/
  version(): string;
}
/**
* Wrapper around a database session and the engine that created it.
*
* This is expected to be instantiated on the javascript side.
*/
export class WasmShell {
  free(): void;
/**
* Create a new shell that writes its output to the provided terminal.
* @param {any} terminal
* @returns {WasmShell}
*/
  static try_new(terminal: any): WasmShell;
/**
* Notify on terminal resize.
* @param {number} cols
*/
  on_resize(cols: number): void;
/**
* Consume a string verbatim.
*
* This should be hooked up to xterm's `onData` method to enable pasting.
* @param {string} text
*/
  on_data(text: string): void;
/**
* Consume a keyboard event.
*
* This should be hooked up to xterm's `attachCustomKeyEventHandler`. This
* will handle _all_ input, so `false` should be returned to xterm after
* calling this for an event.
* @param {KeyboardEvent} event
*/
  on_key(event: KeyboardEvent): void;
}
