// just the node apis the tests use, because @types/node fights the workers types
declare module 'node:sqlite' {
interface StatementSync {
all(...params: unknown[]): Record<string, unknown>[];
run(...params: unknown[]): { changes: number | bigint };
columns(): unknown[];
}
export class DatabaseSync {
constructor(path: string);
exec(sql: string): void;
prepare(sql: string): StatementSync;
}
}
interface ImportMeta {
url: string;
}
declare module 'node:fs' {
export function readFileSync(path: URL, encoding: 'utf8'): string;
export function readdirSync(path: URL): string[];
}