import type { Context, Hono } from "hono"; import { KeyLike } from "jose"; export type Adapter = (route: AdapterRoute, options: AdapterOptions) => void; export type AdapterRoute = Hono; export interface AdapterOptions { name: string; algorithm: string; encryption: { publicKey: () => Promise; privateKey: () => Promise; }; signing: { publicKey: () => Promise; privateKey: () => Promise; }; success: (ctx: Context, properties: Properties) => Promise; forward: (ctx: Context, response: Response) => Response; cookie: (ctx: Context, key: string, value: string, maxAge: number) => void; } export declare class AdapterError extends Error { } export declare class AdapterUnknownError extends AdapterError { }