type SqliteValue = string | number | bigint | Uint8Array | null; interface ActorDatabase { /** Executes one SQL statement with positional bindings and returns its rows. */ exec>(sql: string, ...bindings: SqliteValue[]): Row[]; /** Runs `operation` in a SQLite transaction: if it throws, its SQL and `@Persisted` writes roll back. Transactions nest. */ transaction(operation: () => Promise): Promise; } interface RuntimeActorDatabase extends ActorDatabase { query(sql: string, ...bindings: SqliteValue[]): ActorQueryResult; } interface ActorQueryResult { readonly columns: string[]; readonly rows: SqliteValue[][]; } declare function isActorInvocation(actor: object): boolean; declare function runWithActorDatabase(actor: object, operation: () => Promise): Promise; export { isActorInvocation, runWithActorDatabase }; export type { ActorDatabase, ActorQueryResult, RuntimeActorDatabase, SqliteValue }; //# sourceMappingURL=database.d.ts.map