import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { ConfigurableOperation, ConfigurableOperationDefinition, DataService, GetActiveChannelQuery, GetShippingMethodDetailDocument, LanguageCode, NotificationService, Permission, ShippingMethodFragment, TestShippingMethodResult, TypedBaseDetailComponent } from '@vendure/admin-ui/core'; import { Observable } from 'rxjs'; import { TestAddress } from '../test-address-form/test-address-form.component'; import { TestOrderLine } from '../test-order-builder/test-order-builder.component'; import * as i0 from "@angular/core"; export declare const GET_SHIPPING_METHOD_DETAIL: import("apollo-angular").TypedDocumentNode; export declare class ShippingMethodDetailComponent extends TypedBaseDetailComponent implements OnInit, OnDestroy { private changeDetector; protected dataService: DataService; private formBuilder; private notificationService; customFields: import("@vendure/admin-ui/core").CustomFieldConfig[]; detailForm: import("@angular/forms").FormGroup<{ code: import("@angular/forms").FormControl; name: import("@angular/forms").FormControl; description: import("@angular/forms").FormControl; fulfillmentHandler: import("@angular/forms").FormControl; checker: import("@angular/forms").FormControl<{ __typename?: "ConfigurableOperation"; code: string; args: Array<{ __typename?: "ConfigArg"; name: string; value: string; }>; } | null>; calculator: import("@angular/forms").FormControl<{ __typename?: "ConfigurableOperation"; code: string; args: Array<{ __typename?: "ConfigArg"; name: string; value: string; }>; } | null>; customFields: import("@angular/forms").FormGroup<{ [x: string]: import("@angular/forms").FormControl<{} | null>; }>; }>; checkers: ConfigurableOperationDefinition[]; calculators: ConfigurableOperationDefinition[]; fulfillmentHandlers: ConfigurableOperationDefinition[]; selectedChecker?: ConfigurableOperation | null; selectedCheckerDefinition?: ConfigurableOperationDefinition; selectedCalculator?: ConfigurableOperation | null; selectedCalculatorDefinition?: ConfigurableOperationDefinition; activeChannel$: Observable; testAddress: TestAddress; testOrderLines: TestOrderLine[]; testDataUpdated: boolean; testResult$: Observable; readonly updatePermission: Permission[]; private fetchTestResult$; constructor(changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService); ngOnInit(): void; ngOnDestroy(): void; updateCode(currentCode: string | undefined, nameValue: string): void; selectChecker(checker: ConfigurableOperationDefinition): void; selectCalculator(calculator: ConfigurableOperationDefinition): void; create(): void; save(): void; setTestOrderLines(event: TestOrderLine[]): void; setTestAddress(event: TestAddress): void; allTestDataPresent(): boolean; runTest(): void; /** * Given a ShippingMethod and the value of the detailForm, this method creates an updated copy which * can then be persisted to the API. */ private getUpdatedShippingMethod; protected setFormValues(shippingMethod: ShippingMethodFragment, languageCode: LanguageCode): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }