import Database from "better-sqlite3"; import { Context, Effect, Layer } from "effect"; export declare class DatabaseError { readonly message: string; readonly cause?: unknown | undefined; readonly _tag = "DatabaseError"; constructor(message: string, cause?: unknown | undefined); } export interface DatabaseConfig { readonly path: string; readonly readOnly?: boolean; readonly fileMustExist?: boolean; readonly timeout?: number; readonly verbose?: boolean; } declare const DatabaseService_base: Context.TagClass(sql: string, params?: unknown[]) => Effect.Effect; readonly get: (sql: string, params?: unknown[]) => Effect.Effect; readonly all: (sql: string, params?: unknown[]) => Effect.Effect; readonly exec: (sql: string) => Effect.Effect; readonly close: () => Effect.Effect; }>; export declare class DatabaseService extends DatabaseService_base { static Live: (config: DatabaseConfig) => Layer.Layer; } export {}; //# sourceMappingURL=db.d.ts.map