import type { BlockType, BlockCategory, BlockCollection, BlockStyle, BlockVariation, BlockBindingsSource } from '../types'; import type { Action } from './types'; /** * Default set of categories. */ export declare const DEFAULT_CATEGORIES: BlockCategory[]; /** * Reducer managing the unprocessed block types in a form passed when registering the by block. * It's for internal use only. It allows recomputing the processed block types on-demand after block type filters * get added or removed. * * @param state Current state. * @param action Dispatched action. * * @return Updated state. */ export declare function unprocessedBlockTypes(state: Record> | undefined, action: Action): Record>; /** * Reducer managing the processed block types with all filters applied. * The state is derived from the `unprocessedBlockTypes` reducer. * * @param state Current state. * @param action Dispatched action. * * @return Updated state. */ export declare function blockTypes(state: Record | undefined, action: Action): Record; /** * Reducer managing the block styles. * * @param state Current state. * @param action Dispatched action. * * @return Updated state. */ export declare function blockStyles(state: Record | undefined, action: Action): Record; /** * Reducer managing the block variations. * * @param state Current state. * @param action Dispatched action. * * @return Updated state. */ export declare function blockVariations(state: Record | undefined, action: Action): Record; /** * Higher-order Reducer creating a reducer keeping track of given block name. * * @param setActionType Action type. * * @return Reducer. */ export declare function createBlockNameSetterReducer(setActionType: string): (state: string | null | undefined, action: Action) => string | null; export declare const defaultBlockName: (state: string | null | undefined, action: Action) => string | null; export declare const freeformFallbackBlockName: (state: string | null | undefined, action: Action) => string | null; export declare const unregisteredFallbackBlockName: (state: string | null | undefined, action: Action) => string | null; export declare const groupingBlockName: (state: string | null | undefined, action: Action) => string | null; /** * Reducer managing the categories * * @param state Current state. * @param action Dispatched action. * * @return Updated state. */ export declare function categories(state: BlockCategory[] | undefined, action: Action): BlockCategory[]; export declare function collections(state: Record | undefined, action: Action): Record; export declare function blockBindingsSources(state: Record> | undefined, action: Action): Record>; declare const _default: import("redux").Reducer<{ bootstrappedBlockTypes: Record>>>; unprocessedBlockTypes: Record>>>; blockTypes: Record>>; blockStyles: Record; blockVariations: Record>[]>; defaultBlockName: string | null; freeformFallbackBlockName: string | null; unregisteredFallbackBlockName: string | null; groupingBlockName: string | null; categories: BlockCategory[]; collections: Record; blockBindingsSources: Record>; }, Action, Partial<{ bootstrappedBlockTypes: never; unprocessedBlockTypes: never; blockTypes: never; blockStyles: never; blockVariations: never; defaultBlockName: never; freeformFallbackBlockName: never; unregisteredFallbackBlockName: never; groupingBlockName: never; categories: never; collections: never; blockBindingsSources: never; }>>; export default _default; //# sourceMappingURL=reducer.d.ts.map