import * as _xxmachina_common_domain_models from '@xxmachina/common/domain/models'; import { Command, Resource } from '@xxmachina/common/domain/models'; import * as rxjs from 'rxjs'; import { ReplaySubject } from 'rxjs'; import * as _angular_core from '@angular/core'; import { InjectionToken } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { JsonSchemaService } from '@xxmachina/components/services/json-schema'; import { AppService } from '@ng-atomic/common/services/app'; import { OpenApiService } from '@xxmachina/components/services/openapi'; import { CommandActionFactoryOptions, ActionId, CommandActionsBuilder } from '@xxmachina/common/domain/builder'; import { NavigationExtras } from '@angular/router'; import { Action } from '@ng-atomic/core'; type CommandActionOptions = CommandActionFactoryOptions & { overwrite?: Partial; }; type CommandPermissionResolver = (command: Command) => boolean; declare const COMMAND_PERMISSION_RESOLVER: InjectionToken; declare function provideCommandPermissionResolver(useFactory: () => CommandPermissionResolver): { provide: InjectionToken; useFactory: () => CommandPermissionResolver; }; declare class CommandService { static readonly ActionId: typeof ActionId; protected readonly app: AppService; protected readonly http: HttpClient; protected readonly resources: _angular_core.Signal; protected readonly resourceUrls: _angular_core.Signal; protected readonly resourceUrls$: rxjs.Observable; protected readonly refresh$: ReplaySubject; readonly schema: JsonSchemaService; readonly openApi: OpenApiService; readonly commands$: rxjs.Observable<_xxmachina_common_domain_models.WebAPiRequestCommand[]>; readonly commands: _angular_core.Signal<_xxmachina_common_domain_models.WebAPiRequestCommand[] | undefined>; protected readonly permissionResolver: CommandPermissionResolver; constructor(); getCommand(id: string): Command | null; getCommands(ids: string[]): Command[]; getActionBuilder(item?: any): CommandActionsBuilder; execute(commandOrCommandId: Command | string, data: D): Promise; refresh(): Promise; resolveResponse(data: any): Promise; download(url: string): Promise; buildNavigationAction(commandOrId: Command | string, data?: any, navigationExtra?: NavigationExtras, options?: CommandActionOptions): Action | null; buildExecutionAction(commandOrId: Command | string, data?: any, options?: CommandActionOptions): Action | null; hasPermission(commandOrId: Command | string): boolean; protected resolveCommand(commandOrId: Command | string): Command | null; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } export { COMMAND_PERMISSION_RESOLVER, CommandService, provideCommandPermissionResolver }; export type { CommandActionOptions, CommandPermissionResolver }; //# sourceMappingURL=xxmachina-components-services-command.d.ts.map