import { Reducer } from 'redux'; import { Identifier, ReduxState } from '../../../types'; export interface OneToManyState { [relatedTo: string]: { ids: Identifier[]; total: number; }; } declare const oneToManyReducer: Reducer; export declare const getIds: (state: ReduxState, relatedTo: string) => Identifier[]; export declare const getTotal: (state: ReduxState, relatedTo: string) => number; export declare const getReferences: (state: ReduxState, reference: any, relatedTo: any) => {}; export declare const getReferencesByIds: (state: ReduxState, reference: string, ids: Identifier[]) => {}; export declare const nameRelatedTo: (reference: string, id: Identifier, resource: string, target: string, filter?: object) => string; export default oneToManyReducer;