/** * Internal dependencies */ import type { StoreConfig, Action, ThunkArgs } from '../../utils/store-types'; export declare enum ActionType { Unknown = "REDUX_UNKNOWN", SetDefaultSidebar = "SET_DEFAULT_SIDEBAR" } type UnknownAction = Action; type SetDefaultSidebarAction = Action; export type CombinedAction = UnknownAction | SetDefaultSidebarAction; export type State = { defaultSidebarId: string | false; }; export type ActionCreators = typeof actions; export type Selectors = typeof selectors; type DispatcherArgs = ThunkArgs; declare const actions: { /** * Opens a sidebar. * * @since 0.4.0 * * @param sidebarId - Sidebar identifier. * @returns Action creator. */ openSidebar(sidebarId: string): ({ registry }: DispatcherArgs) => void; /** * Closes the currently open sidebar (if any). * * @since 0.4.0 * * @returns Action creator. */ closeSidebar(): ({ registry }: DispatcherArgs) => void; /** * Toggles a sidebar. * * If the sidebar is active, it will be closed. * If the sidebar is closed or another sidebar is active, it will be opened. * * @since 0.4.0 * * @param sidebarId - Sidebar identifier. * @returns Action creator. */ toggleSidebar(sidebarId: string): ({ dispatch, select }: DispatcherArgs) => void; /** * Toggles the default sidebar. * * If a sidebar is active, it will be closed. * If no sidebar is active, the default sidebar will be opened. * * @since 0.4.0 * * @returns Action creator. */ toggleDefaultSidebar(): ({ dispatch, select }: DispatcherArgs) => void; /** * Sets the default sidebar. * * @since 0.4.0 * * @param sidebarId - Sidebar identifier. * @returns Action creator. */ setDefaultSidebar(sidebarId: string): ({ dispatch }: DispatcherArgs) => void; }; declare const selectors: { getActiveSidebar: { (): string | null | undefined; isRegistrySelector?: boolean; registry?: any; }; isSidebarActive: { (_state: State, sidebarId: string): boolean; isRegistrySelector?: boolean; registry?: any; }; getDefaultSidebar: (state: State) => string | false; }; declare const storeConfig: StoreConfig; export default storeConfig; //# sourceMappingURL=sidebar.d.ts.map