import type { ThunkArgs } from '@wordpress/data'; import type { CloseModalAction, OpenModalAction, SetDefaultComplementaryAreaAction } from './types'; /** * Set a default complementary area. * * @param scope Complementary area scope. * @param area Area identifier. * * @return Action object. */ export declare const setDefaultComplementaryArea: (scope: string, area: string) => SetDefaultComplementaryAreaAction; /** * Enable the complementary area. * * @param scope Complementary area scope. * @param area Area identifier. */ export declare const enableComplementaryArea: (scope: string, area: string) => ({ registry, dispatch }: ThunkArgs) => void; /** * Disable the complementary area. * * @param scope Complementary area scope. */ export declare const disableComplementaryArea: (scope: string) => ({ registry }: ThunkArgs) => void; /** * Pins an item. * * @param scope Item scope. * @param item Item identifier. * * @return Action object. */ export declare const pinItem: (scope: string, item: string) => ({ registry }: ThunkArgs) => void; /** * Unpins an item. * * @param scope Item scope. * @param item Item identifier. */ export declare const unpinItem: (scope: string, item: string) => ({ registry }: ThunkArgs) => void; /** * Returns an action object used in signalling that a feature should be toggled. * * @param scope The feature scope (e.g. core/edit-post). * @param featureName The feature name. */ export declare function toggleFeature(scope: string, featureName: string): ({ registry }: ThunkArgs) => void; /** * Returns an action object used in signalling that a feature should be set to * a true or false value * * @param scope The feature scope (e.g. core/edit-post). * @param featureName The feature name. * @param value The value to set. * * @return Action object. */ export declare function setFeatureValue(scope: string, featureName: string, value: boolean): ({ registry }: ThunkArgs) => void; /** * Returns an action object used in signalling that defaults should be set for features. * * @param scope The feature scope (e.g. core/edit-post). * @param defaults A key/value map of feature names to values. * * @return Action object. */ export declare function setFeatureDefaults(scope: string, defaults: Record): ({ registry }: ThunkArgs) => void; /** * Returns an action object used in signalling that the user opened a modal. * * @param name A string that uniquely identifies the modal. * * @return Action object. */ export declare function openModal(name: string): OpenModalAction; /** * Returns an action object signalling that the user closed a modal. * * @return Action object. */ export declare function closeModal(): CloseModalAction; //# sourceMappingURL=actions.d.ts.map