UNPKG

900 BTypeScriptView Raw
1import { Provider } from '@angular/core';
2import { ApolloClientOptions } from '@apollo/client/core';
3import { Flags, NamedOptions } from './types';
4import * as i0 from "@angular/core";
5/**
6 * This is deprecated and will be removed in the next major version, because
7 * Angular is moving toward a moduleless ecosystem.
8 *
9 * Instead, use either `provideApollo()` or `provideNamedApollo()`.
10 *
11 * @deprecated
12 */
13export declare class ApolloModule {
14 static ɵfac: i0.ɵɵFactoryDeclaration<ApolloModule, never>;
15 static ɵmod: i0.ɵɵNgModuleDeclaration<ApolloModule, never, never, never>;
16 static ɵinj: i0.ɵɵInjectorDeclaration<ApolloModule>;
17}
18export declare function provideApollo<TCacheShape = any>(optionsFactory: () => ApolloClientOptions<TCacheShape>, flags?: Flags): Provider;
19export declare function provideNamedApollo(optionsFactory: () => NamedOptions, flags?: Flags): Provider;