1 | import { Apollo } from 'apollo-angular';
|
2 | import { ApolloCache } from '@apollo/client/core';
|
3 | import { InjectionToken } from '@angular/core';
|
4 | import { ApolloTestingBackend } from './backend';
|
5 | import * as i0 from "@angular/core";
|
6 | import * as i1 from "apollo-angular";
|
7 | export declare type NamedCaches = Record<string, ApolloCache<any> | undefined | null>;
|
8 | export declare const APOLLO_TESTING_CACHE: InjectionToken<ApolloCache<any>>;
|
9 | export declare const APOLLO_TESTING_NAMED_CACHE: InjectionToken<NamedCaches>;
|
10 | export declare const APOLLO_TESTING_CLIENTS: InjectionToken<string[]>;
|
11 | export declare class ApolloTestingModuleCore {
|
12 | constructor(apollo: Apollo, backend: ApolloTestingBackend, namedClients?: string[], cache?: ApolloCache<any>, namedCaches?: any);
|
13 | static ɵfac: i0.ɵɵFactoryDeclaration<ApolloTestingModuleCore, [null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
14 | static ɵmod: i0.ɵɵNgModuleDeclaration<ApolloTestingModuleCore, never, [typeof i1.ApolloModule], never>;
|
15 | static ɵinj: i0.ɵɵInjectorDeclaration<ApolloTestingModuleCore>;
|
16 | }
|
17 | export declare class ApolloTestingModule {
|
18 | static withClients(names: string[]): {
|
19 | ngModule: typeof ApolloTestingModuleCore;
|
20 | providers: {
|
21 | provide: InjectionToken<string[]>;
|
22 | useValue: string[];
|
23 | }[];
|
24 | };
|
25 | static ɵfac: i0.ɵɵFactoryDeclaration<ApolloTestingModule, never>;
|
26 | static ɵmod: i0.ɵɵNgModuleDeclaration<ApolloTestingModule, never, [typeof ApolloTestingModuleCore], never>;
|
27 | static ɵinj: i0.ɵɵInjectorDeclaration<ApolloTestingModule>;
|
28 | }
|