/** * Defines state types used within the Campaigns modules * Author: Callan Heard */ /** Details for a single campaign content entry */ export declare type CampaignContent = { /** Content ID */ id: string; /** Extra unknown properties */ [key: string]: any; }; /** Details for an entire campaign */ export declare type Campaign = { /** Campaign ID */ id: string; /** Current content page */ page: number; /** Whether all content is present in state */ isLast: boolean; /** Content for the campaign */ content: CampaignContent['id'][]; }; /** Feature state object */ export declare type CampaignsState = { /** Campaign objects */ campaigns: { /** Mapped by ID */ byId: { [key: string]: Campaign; }; /** Array of all campaign IDs */ allIds: Campaign['id'][]; }; /** Content objects */ content: { /** Mapped by ID */ byId: { [key: string]: CampaignContent; }; /** Array of all content IDs */ allIds: CampaignContent['id'][]; }; }; //# sourceMappingURL=campaigns-state.type.d.ts.map