1 | import type { DocumentNode } from 'graphql';
|
2 | import type { Observable } from 'rxjs';
|
3 | import type { OperationVariables, TypedDocumentNode } from '@apollo/client/core';
|
4 | import { Apollo } from './apollo';
|
5 | import type { EmptyObject, MutationOptionsAlone, MutationResult } from './types';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare abstract class Mutation<T = {}, V extends OperationVariables = EmptyObject> {
|
8 | protected readonly apollo: Apollo;
|
9 | abstract readonly document: DocumentNode | TypedDocumentNode<T, V>;
|
10 | client: string;
|
11 | constructor(apollo: Apollo);
|
12 | mutate(variables?: V, options?: MutationOptionsAlone<T, V>): Observable<MutationResult<T>>;
|
13 | static ɵfac: i0.ɵɵFactoryDeclaration<Mutation<any, any>, never>;
|
14 | static ɵprov: i0.ɵɵInjectableDeclaration<Mutation<any, any>>;
|
15 | }
|