import { type DatabaseInput } from '../db/binding.js'; import type { Database } from '../db/types.js'; import { type AccessGrant } from './access-token.js'; export type BrokerContext = { Bindings: Bindings; Variables: { db: Database; accessGrant: AccessGrant; }; }; /** * Resolves the database for the request. * * The binding is supplied when Hookfish is constructed. It may be a ready * Hookfish database or a runtime-aware binding that resolves from `c.env`. */ export declare function withDatabase(database: DatabaseInput): import("hono").MiddlewareHandler, string, {}, Response>; /** * Guards every endpoint that can mint an authorization or read a token. * The OAuth callback is deliberately exempt: it is hit by the user's browser * and is authenticated instead by the single-use `state` value. */ export declare function requireApiKey(): import("hono").MiddlewareHandler, string, {}, Response>; //# sourceMappingURL=middleware.d.ts.map