/* generated file, don't edit. */

import { SqlCipherFacade } from "./SqlCipherFacade.js"

interface NativeInterface {
	invokeNative(requestType: string, args: unknown[]): Promise<any>
}
export class SqlCipherFacadeSendDispatcher implements SqlCipherFacade {
	constructor(private readonly transport: NativeInterface) {}
	async openDb(...args: Parameters<SqlCipherFacade["openDb"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "openDb", ...args])
	}
	async closeDb(...args: Parameters<SqlCipherFacade["closeDb"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "closeDb", ...args])
	}
	async deleteDb(...args: Parameters<SqlCipherFacade["deleteDb"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "deleteDb", ...args])
	}
	async run(...args: Parameters<SqlCipherFacade["run"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "run", ...args])
	}
	async get(...args: Parameters<SqlCipherFacade["get"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "get", ...args])
	}
	async all(...args: Parameters<SqlCipherFacade["all"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "all", ...args])
	}
	async tokenize(...args: Parameters<SqlCipherFacade["tokenize"]>) {
		return this.transport.invokeNative("ipc", ["SqlCipherFacade", "tokenize", ...args])
	}
}
