import type { Request, Response, NextFunction } from 'express'; import { Router } from 'express'; import type { LogtoExpressConfig } from './types.js'; export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, ReservedResource, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@slash-copilot/node'; export type { LogtoContext, InteractionMode, LogtoErrorCode } from '@slash-copilot/node'; export type { LogtoExpressConfig } from './types.js'; export type Middleware = (request: Request, response: Response, next: NextFunction) => Promise; export declare const handleAuthRoutes: (config: LogtoExpressConfig) => Router; export declare const withLogto: (config: LogtoExpressConfig) => Middleware;