import type { IncomingMessage, ServerResponse } from "http"; import type { InMemoryLinkTokenStore } from "./store.js"; import { type VaultManager } from "../../vault/index.js"; export type { NotifyFn } from "./types.js"; import type { NotifyFn } from "./types.js"; /** * Start a small HTTP server that receives credential onboarding callbacks from the web portal. * * Routes: * GET /health — health check * GET /link?token=xxx — credential onboarding page * POST /api/link/complete — API key completion endpoint * POST /api/oauth/start — creates provider OAuth redirect URL * GET /oauth/callback — OAuth callback endpoint */ export declare function createLoginRequestHandler(linkTokenStore: InMemoryLinkTokenStore, vaultManager: VaultManager, notify: NotifyFn): (req: IncomingMessage, res: ServerResponse, url: URL) => boolean; //# sourceMappingURL=portal.d.ts.map