import { APIResourceType, APIResourceLocale, type APIResource } from '../../api'; import { Branded } from '../../utils/branded'; import { type Action, type UnknownAction } from '../actions'; type CompositeResourceId = Branded; export type State = Map>; export type SerializedState = { [key in APIResourceType]?: { id: string; value: Extract | null; locale?: APIResourceLocale; }[]; }; export declare function getInitialState(serializedState?: SerializedState): State; export declare function getSerializedState(state: State): SerializedState; export declare function getHasAPIResource(state: State, resourceType: T, resourceId: string, locale?: APIResourceLocale): boolean; export declare function getAPIResource(state: State, resourceType: T, resourceId: string, locale?: APIResourceLocale): Extract | null; export declare function reducer(state: State | undefined, action: Action | UnknownAction): State; export {}; //# sourceMappingURL=api-resources.d.ts.map