import { AuthRequestContext, StartAuthJSConfig } from './types.js'; export interface StartAuthJSHandlers { GET: (context: AuthRequestContext) => Promise; POST: (context: AuthRequestContext) => Promise; signIn: (context: AuthRequestContext) => Promise; signOut: (context: AuthRequestContext) => Promise; } /** * Create Start Auth.js handlers for API routes * * Usage in your API route (e.g., routes/api/auth/[...all].ts): * ```ts * import { StartAuthJS } from 'start-authjs' * import GitHub from '@auth/core/providers/github' * * const { GET, POST } = StartAuthJS({ * providers: [GitHub], * }) * * export { GET, POST } * ``` */ export declare function StartAuthJS(config: StartAuthJSConfig | ((context: AuthRequestContext) => PromiseLike)): StartAuthJSHandlers;