import { Express } from 'express'; import { SimpleJWTConfig } from './simple-jwt.js'; import { APIKeyConfig } from './api-key.js'; import { McpAuthConfig } from './server-integration.js'; /** * Quick Setup Helpers * * Make it dead simple to add authentication to NitroStack servers */ /** * Setup Simple JWT Authentication (1-liner!) * * @example * ```typescript * const server = createServer({...}); * * // That's it! JWT auth enabled * setupJWTAuth(server.app, { * secret: process.env.JWT_SECRET!, * }); * * server.start(); * ``` */ export declare function setupJWTAuth(app: Express, config: SimpleJWTConfig, path?: string): void; /** * Setup API Key Authentication (1-liner!) * * @example * ```typescript * const server = createServer({...}); * * // That's it! API key auth enabled * setupAPIKeyAuth(server.app, { * keys: [process.env.API_KEY!], * }); * * server.start(); * ``` */ export declare function setupAPIKeyAuth(app: Express, config: APIKeyConfig, path?: string): void; /** * Setup OAuth 2.1 Authentication (full enterprise setup) * * @example * ```typescript * const server = createServer({...}); * * // Full OAuth 2.1 with PKCE * setupOAuthAuth(server.app, { * resourceUri: 'https://mcp.example.com', * authorizationServers: ['https://auth.example.com'], * tokenIntrospectionEndpoint: '...', * tokenIntrospectionClientId: '...', * tokenIntrospectionClientSecret: process.env.INTROSPECTION_SECRET, * }); * * server.start(); * ``` */ export declare function setupOAuthAuth(app: Express, config: McpAuthConfig, path?: string): void; /** * Generate test credentials (for development) * * @example * ```typescript * const creds = generateTestCredentials(); * console.log('JWT Secret:', creds.jwtSecret); * console.log('API Key:', creds.apiKey); * console.log('Sample Token:', creds.sampleToken); * ``` */ export declare function generateTestCredentials(options?: { jwtAudience?: string; jwtIssuer?: string; apiKeyPrefix?: string; }): { jwtSecret: string; apiKey: string; apiKeyHashed: string; sampleToken: string; }; /** * Print auth setup instructions */ export declare function printAuthSetupInstructions(type: 'jwt' | 'apikey' | 'oauth'): void; /** * Validate auth environment variables */ export declare function validateAuthEnv(type: 'jwt' | 'apikey' | 'oauth'): { valid: boolean; missing: string[]; }; //# sourceMappingURL=quick-setup.d.ts.map