import type { ItemInputs, ControlInputs } from "../../types/state/inputs"; import type { Position } from "../../types/state/position"; /** * Returns the value that is in the given `ControlInputs` object using the following parameters: * * - `path`: The path within the `ControlInputs` object that contains a `FormInputs` object. * - `name`: The name of the value within the `FormInputs` object. * - `keys`: The list of keys that is used to access the value within the `FormInputs` object. * - `defaultValue`: The default value to return if the value is not found. * * @param inputs The `ControlInputs` object. * @param path The path within the `ControlInputs` object that contains a `FormInputs` object. * @param name The name of the value within the `FormInputs` object. * @param keys The list of keys that is used to access the value within the `FormInputs` object. * @param defaultValue The default value to return if the value is not found. * @returns The value that is in the given `ControlInputs` object or the default value if the value is not found. */ export declare function get(inputs: ControlInputs, path: Position[], name: string, keys: PropertyKey[], defaultValue: unknown): unknown; /** * Sets the value in the given `ControlInputs` object using the following parameters: * * - `path`: The path within the `ControlInputs` object that contains a `FormInputs` object. * - `name`: The name of the value within the `FormInputs` object. * - `keys`: The list of keys that is used to access the value within the `FormInputs` object. * - `value`: The value to set. * * @param inputs The `ControlInputs` object. * @param path The path within the `ControlInputs` object that contains a `FormInputs` object. * @param name The name of the value within the `FormInputs` object. * @param keys The list of keys that is used to access the value within the `FormInputs` object. * @param data The value to set. * @returns The updated `ControlInputs` object. */ export declare function set(inputs: ControlInputs, path: Position[], name: string, keys: PropertyKey[], data: unknown): ControlInputs; /** * Creates a `ControlInputs` object. * * @returns The created `ControlInputs` object. */ export declare function create(position: Position): ControlInputs; /** * Clones a `ControlInputs` object. * * @param inputs A `ControlInputs` object. * @returns The cloned `ControlInputs` object. */ export declare function clone(inputs: ControlInputs): ControlInputs; /** * Returns the `ItemInputs` object at the given position within the given `ControlInputs` object, or `null` if there is no item at the given position. * * @param inputs The `ControlInputs` object. * @param position The position within the `ControlInputs` object. * @returns The `ItemInputs` object at the given position within the `ControlInputs` object, or `null` if there is no item at the given position. */ export declare function getItem(inputs: ControlInputs, position: Position): ItemInputs | null; /** * Sets the `ItemInputs` object at the given position within the given `ControlInputs` object. * * @param inputs The `ControlInputs` object. * @param position The position within the `ControlInputs` object. * @param item The `ItemInputs` object to set. */ export declare function setItem(inputs: ControlInputs, position: Position, item: ItemInputs): void; //# sourceMappingURL=control.d.ts.map