import { EnvironmentProviders, Provider } from '@angular/core'; import { FgsSessionConfig } from './models/config.model'; /** * Provide FGS Session Management * * Usage in app.config.ts: * ```typescript * import { provideFgsSession } from 'fgs-session-management'; * * export const appConfig: ApplicationConfig = { * providers: [ * provideFgsSession({ * apiBaseUrl: 'https://your-api.com/api', * endpoints: { * createSession: '/Session/create', * validateSession: '/Session/validate', * refreshSession: '/Auth/refreshsession', * revokeSession: '/Session/revoke', * listSessions: '/Session/list', * logout: '/Auth/removesession' * } * }) * ] * }; * ``` */ export declare function provideFgsSession(config: FgsSessionConfig): EnvironmentProviders; /** * Provide FGS Session with HTTP interceptor * * Use this if you haven't already configured HttpClient with interceptors * * Usage: * ```typescript * export const appConfig: ApplicationConfig = { * providers: [ * provideFgsSessionWithInterceptor({ * apiBaseUrl: 'https://your-api.com/api', * // ... rest of config * }) * ] * }; * ``` */ export declare function provideFgsSessionWithInterceptor(config: FgsSessionConfig): EnvironmentProviders; /** * Get the FGS Session interceptor for use with existing HttpClient configuration * * Usage: * ```typescript * import { getFgsSessionInterceptor } from 'fgs-session-management'; * * export const appConfig: ApplicationConfig = { * providers: [ * provideFgsSession({ ... }), * provideHttpClient( * withInterceptors([ * getFgsSessionInterceptor(), * // other interceptors... * ]) * ) * ] * }; * ``` */ export declare function getFgsSessionInterceptor(): import("@angular/common/http").HttpInterceptorFn; /** * Create providers array for NgModule usage (if needed) */ export declare function createFgsSessionProviders(config: FgsSessionConfig): Provider[]; //# sourceMappingURL=fgs-session.provider.d.ts.map