// Ambient declarations specific to this package. // Bun, Node (node:*), and bun:test types come from @types/bun (→ bun-types). // Only declarations bun-types does NOT provide are kept here. // ── Bun globals ─────────────────────────────────────────────────────────── interface Request { readonly params?: Record; } // ── SQLInstance ─────────────────────────────────────────────────────────── interface SQLInstance { >( strings: TemplateStringsArray, ...values: unknown[] ): Promise; begin(fn: (tx: SQLInstance) => Promise): Promise; end(): Promise; } interface RedisInstance { get(key: string): Promise; set(key: string, value: string): Promise; set(key: string, value: string, options: { ex: number }): Promise; lpush(key: string, value: string): Promise; rpop(key: string): Promise; llen(key: string): Promise; del(...keys: string[]): Promise; expire(key: string, seconds: number): Promise; keys(pattern: string): Promise; flushdb(): Promise; }