/** * `provideBrowsonic()` — standalone-style provider factory for * Angular 17+ `app.config.ts`. Returns the providers array that * wires `BrowsonicErrorHandler` into Angular's `ErrorHandler` token * and registers `BrowsonicService` as an injectable. * * ```ts * // app.config.ts * import type { ApplicationConfig } from '@angular/core'; * import { provideBrowsonic } from '@browsonic/angular'; * * export const appConfig: ApplicationConfig = { * providers: [ * ...provideBrowsonic(), * // your other providers * ], * }; * ``` * * The return type is `Provider[]` from `@angular/core` (type-only * import — `@angular/core` stays a peer dep, not a runtime dep). * * @copyright 2024-2026 Browsonic * @license Apache-2.0 */ import type { Provider } from '@angular/core'; import type { Browsonic } from '@browsonic/sdk'; export interface ProvideBrowsonicOptions { /** SDK instance. Falls back to `window.Browsonic.getBrowsonic()`. */ sdk?: Browsonic; /** * Pass through to `BrowsonicErrorHandler.consoleFallback`. * Default: `true`. */ consoleFallback?: boolean; } export declare function provideBrowsonic(options?: ProvideBrowsonicOptions): Provider[]; //# sourceMappingURL=provide.d.ts.map