<?php

declare (strict_types=1);
namespace PoP\ComponentModel\ComponentProcessors;

use PoP\ComponentModel\Checkpoints\CheckpointInterface;
use PoP\ComponentModel\Component\Component;
use PoP\ComponentModel\GraphQLEngine\Model\ComponentModelSpec\ConditionalLeafComponentFieldNode;
use PoP\ComponentModel\GraphQLEngine\Model\ComponentModelSpec\ConditionalRelationalComponentFieldNode;
use PoP\ComponentModel\GraphQLEngine\Model\ComponentModelSpec\LeafComponentFieldNode;
use PoP\ComponentModel\GraphQLEngine\Model\ComponentModelSpec\RelationalComponentFieldNode;
use PoP\ComponentModel\MutationResolverBridges\ComponentMutationResolverBridgeInterface;
use PoP\ComponentModel\TypeResolvers\RelationalTypeResolverInterface;
use PoP\GraphQLParser\Spec\Parser\Ast\FieldInterface;
use PoP\ComponentModel\Feedback\FeedbackItemResolution;
/** @internal */
interface ComponentProcessorInterface
{
    /**
     * @return string[]
     */
    public function getComponentNamesToProcess() : array;
    /**
     * @return Component[]
     */
    public function getSubcomponents(Component $component) : array;
    /**
     * @return Component[]
     */
    public function getAllSubcomponents(Component $component) : array;
    /**
     * @param array<string,mixed> $props
     * @param array<string,mixed> $wildcard_props_to_propagate
     * @param array<string,mixed> $targeted_props_to_propagate
     */
    public function executeInitPropsComponentTree(callable $eval_self_fn, callable $get_props_for_descendant_components_fn, callable $get_props_for_descendant_datasetcomponents_fn, string $propagate_fn, Component $component, array &$props, array $wildcard_props_to_propagate, array $targeted_props_to_propagate) : void;
    /**
     * @param array<string,mixed> $props
     * @param array<string,mixed> $wildcard_props_to_propagate
     * @param array<string,mixed> $targeted_props_to_propagate
     */
    public function initModelPropsComponentTree(Component $component, array &$props, array $wildcard_props_to_propagate, array $targeted_props_to_propagate) : void;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getModelPropsForDescendantComponents(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getModelPropsForDescendantDatasetComponents(Component $component, array &$props) : array;
    /**
     * @param array<string,mixed> $props
     */
    public function initModelProps(Component $component, array &$props) : void;
    /**
     * @param array<string,mixed> $props
     * @param array<string,mixed> $wildcard_props_to_propagate
     * @param array<string,mixed> $targeted_props_to_propagate
     */
    public function initRequestPropsComponentTree(Component $component, array &$props, array $wildcard_props_to_propagate, array $targeted_props_to_propagate) : void;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getRequestPropsForDescendantComponents(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getRequestPropsForDescendantDatasetComponents(Component $component, array &$props) : array;
    /**
     * @param array<string,mixed> $props
     */
    public function initRequestProps(Component $component, array &$props) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function setProp(array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function appendGroupProp(string $group, array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function appendProp(array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function mergeGroupProp(string $group, array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function mergeProp(array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function getGroupProp(string $group, Component $component, array &$props, string $property, array $starting_from_componentPath = array()) : mixed;
    /**
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function getProp(Component $component, array &$props, string $property, array $starting_from_componentPath = array()) : mixed;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function mergeGroupIterateKeyProp(string $group, array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function mergeIterateKeyProp(array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @param Component[]|Component $component_or_componentPath
     * @param array<string,mixed> $props
     * @param Component[] $starting_from_componentPath
     */
    public function pushProp(string $group, array|Component $component_or_componentPath, array &$props, string $property, mixed $value, array $starting_from_componentPath = array()) : void;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getImmutableSettingsDatasetcomponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getImmutableDatasetsettings(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getDatasetOutputKeys(Component $component, array &$props) : array;
    /**
     * @param array<string,mixed> $props
     */
    public function getDatasource(Component $component, array &$props) : string;
    /**
     * @return string|int|array<string|int>|null
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     */
    public function getObjectIDOrIDs(Component $component, array &$props, array &$data_properties) : string|int|array|null;
    public function getRelationalTypeResolver(Component $component) : ?RelationalTypeResolverInterface;
    public function getComponentMutationResolverBridge(Component $component) : ?ComponentMutationResolverBridgeInterface;
    /**
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     */
    public function prepareDataPropertiesAfterMutationExecution(Component $component, array &$props, array &$data_properties) : void;
    /**
     * @return LeafComponentFieldNode[]
     * @param array<string,mixed> $props
     */
    public function getLeafComponentFieldNodes(Component $component, array &$props) : array;
    /**
     * @return RelationalComponentFieldNode[]
     */
    public function getRelationalComponentFieldNodes(Component $component) : array;
    /**
     * @return ConditionalLeafComponentFieldNode[]
     */
    public function getConditionalLeafComponentFieldNodes(Component $component) : array;
    /**
     * @return ConditionalRelationalComponentFieldNode[]
     */
    public function getConditionalRelationalComponentFieldNodes(Component $component) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getImmutableDataPropertiesDatasetcomponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getImmutableDataPropertiesDatasetcomponentTreeFullsection(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getDatasetComponentTreeSectionFlattenedDataProperties(Component $component, array &$props) : array;
    /**
     * @return Component[]
     */
    public function getDatasetcomponentTreeSectionFlattenedComponents(Component $component) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getImmutableHeaddatasetcomponentDataProperties(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonmodelDataPropertiesDatasetcomponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonmodelDataPropertiesDatasetcomponentTreeFullsection(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonmodelHeaddatasetcomponentDataProperties(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonrequestDataPropertiesDatasetcomponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonrequestDataPropertiesDatasetcomponentTreeFullsection(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonrequestHeaddatasetcomponentDataProperties(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param array<string|int> $objectIDs
     * @param array<string,mixed>|null $executed
     */
    public function getDataFeedbackDatasetcomponentTree(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, array $objectIDs) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param array<string|int> $objectIDs
     * @param array<string,mixed>|null $executed
     */
    public function getDataFeedbackComponentTree(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, array $objectIDs) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param array<string|int> $objectIDs
     * @param array<string,mixed>|null $executed
     */
    public function getDataFeedback(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, array $objectIDs) : array;
    /**
     * @return array<string,mixed>|null
     * @param array<string,mixed> $props
     */
    public function getDataFeedbackInterreferencedComponentPath(Component $component, array &$props) : ?array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param array<string|int> $objectIDs
     * @param array<string,mixed>|null $executed
     */
    public function getBackgroundurlsMergeddatasetcomponentTree(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, array $objectIDs) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param array<string|int> $objectIDs
     * @param array<string,mixed>|null $executed
     */
    public function getBackgroundurls(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, array $objectIDs) : array;
    /**
     * @param array<string,mixed> $props
     * @param array<string,mixed> $data_properties
     * @param string|int|array<string|int> $objectIDOrIDs
     * @param array<string,mixed>|null $executed
     * @return array<string,mixed>
     */
    public function getDatasetmeta(Component $component, array &$props, array $data_properties, ?FeedbackItemResolution $dataaccess_checkpoint_validation, ?FeedbackItemResolution $actionexecution_checkpoint_validation, ?array $executed, string|int|array $objectIDOrIDs) : array;
    /**
     * @return CheckpointInterface[]
     * @param array<string,mixed> $props
     */
    public function getDataAccessCheckpoints(Component $component, array &$props) : array;
    /**
     * @return CheckpointInterface[]
     * @param array<string,mixed> $props
     */
    public function getActionExecutionCheckpoints(Component $component, array &$props) : array;
    /**
     * @param array<string,mixed> $props
     */
    public function shouldExecuteMutation(Component $component, array &$props) : bool;
    /**
     * @return Component[]
     */
    public function getComponentsToPropagateDataProperties(Component $component) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getModelSupplementaryDBObjectDataComponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getModelSupplementaryDBObjectData(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonrequestSupplementaryDBObjectDataComponentTree(Component $component, array &$props) : array;
    /**
     * @return array<string,mixed>
     * @param array<string,mixed> $props
     */
    public function getMutableonrequestSupplementaryDbobjectdata(Component $component, array &$props) : array;
    public function doesComponentLoadData(Component $component) : bool;
    public function startDataloadingSection(Component $component) : bool;
    /**
     * @param FieldInterface[] $pathFields
     * @param array<string,mixed> $props
     * @param array<string,mixed> $ret
     */
    public function addToDatasetOutputKeys(Component $component, array &$props, array $pathFields, array &$ret) : void;
    /**
     * @param array<string,mixed> $ret
     */
    public function addDatasetcomponentTreeSectionFlattenedComponents(array &$ret, Component $component) : void;
}
