import { type LapGateDeps } from './gate.js'; /** @deprecated Use `LapGateDeps` from `./gate.js`. */ export type ForwardDeps = LapGateDeps; /** * Generic LAP forward handler. `parseArgs` is called with the parsed * body (may be null for empty bodies); it returns the args object to * forward or null to reject as invalid. `tool` is the browser-side tool * name. The shared auth/paused/rate-limit gate + activation/touch/audit * suffix are supplied by `withLapGates`. */ export declare function makeForwardHandler(tool: string, parseArgs: (body: unknown) => object | null, auditDetail?: (tid: string, args: object) => Record): (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapState: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapQueryState: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapActions: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapQueryDom: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapDescribeVisible: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapContext: (req: Request, deps: LapGateDeps) => Promise; export declare const handleLapWouldDispatch: (req: Request, deps: LapGateDeps) => Promise; /** * Read recent log entries from the pairing registry's ring buffer. * Server-side only — no round-trip to the browser. Used by the agent's * `describe_recent_actions` tool to introspect its own activity history * without re-fetching state. * * Shares the same gate as `makeForwardHandler`; it just reads * registry-owned data instead of forwarding an RPC to the browser. */ export declare const handleLapRecentActions: (req: Request, deps: LapGateDeps) => Promise; //# sourceMappingURL=forward.d.ts.map