import { AfterViewInit, ChangeDetectorRef, Injector, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core'; import { AbstractControlDirective, NgControl } from '@angular/forms'; import { MatFormField } from '@angular/material/form-field'; import { ControlOption, ControlOptions } from '@rxap/utilities'; import { Observable, Subscription } from 'rxjs'; import { ExtractOptionsMethodMixin, OptionsMethod } from '../mixins/extract-options-method.mixin'; import * as i0 from "@angular/core"; export interface OptionsFromMethodTemplateContext { $implicit: ControlOption; } export interface OptionsFromMethodDirectiveSettings { } export interface OptionsFromMethodDirective extends AfterViewInit, OnChanges, ExtractOptionsMethodMixin { } export declare class OptionsFromMethodDirective implements AfterViewInit, OnChanges, OnDestroy { static ngTemplateContextGuard(dir: OptionsFromMethodDirective, ctx: any): ctx is OptionsFromMethodTemplateContext; readonly loading: import("@angular/core").WritableSignal; parameters?: Parameters; resetOnChange?: Value; options: ControlOptions | null; method: OptionsMethod, Parameters>; protected ngControl: NgControl | AbstractControlDirective | null; protected matFormField: MatFormField | null; protected settings: OptionsFromMethodDirectiveSettings; protected readonly viewContainerRef: ViewContainerRef; protected readonly injector: Injector; protected readonly cdr: ChangeDetectorRef; private readonly template; protected _loadOptionsSubscription?: Subscription; ngAfterViewInit(): Promise; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): Promise; protected loadOptions(parameters?: Parameters): Promise | ControlOptions | null>; protected renderTemplate(): void; protected setOptions(options: ControlOptions | null): void; load(parameters?: Parameters | undefined): Promise; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[rxapOptionsFromMethod]", ["rxapOptionsFromMethod"], { "parameters": { "alias": "rxapOptionsFromMethodParameters"; "required": false; }; "resetOnChange": { "alias": "rxapOptionsFromMethodResetOnChange"; "required": false; }; "method": { "alias": "rxapOptionsFromMethodCall"; "required": false; }; }, {}, never, never, true, never>; }