import { Data } from '@bufdir/statistics-common'; import { AccordionsBlockComponent, AccordionsBlockProps, HomepageData, HomeProps, InfoBlockComponent, InfoBlockProps, MainPointItem, MainPointProps, PageAttributes, Relation, SectionAttributes, SectionComponent, SectionProps, StatisticsBlockComponent, StatisticspageAttributes, StatisticspageData, StatisticspageLinkProps, StatisticspageProps, StatsBlockProps, SubjectAttributes, SubjectCategoryAttributes, SubjectCategoryPageLink, SubjectCategoryProps, SubjectGroup, SubjectGroupProps, SubjectLinkProps, SubjectProps, SubjectsRelation, SubjectSummaryAttributes, SubjectSummaryLinkProps } from '@bufdir/statistics-pages-components'; export declare const toMediaUrl: (url: string, mediaBase: string) => string; export declare const toStatsBlockProps: (component: StatisticsBlockComponent, sectionId: number, mediaBase: string) => StatsBlockProps | undefined; export declare const toInfoBlockProps: (component: InfoBlockComponent, sectionId: number) => InfoBlockProps; export declare const toAccordionsBlockProps: (component: AccordionsBlockComponent, sectionId: number) => AccordionsBlockProps; export declare const toSectionComponentsProps: (components: SectionComponent[], sectionId: number, mediaBase: string) => (InfoBlockProps | StatsBlockProps | AccordionsBlockProps)[]; export declare const toSectionProps: (sectionData: Relation<"section", SectionAttributes> | Data, mediaBase: string) => SectionProps | undefined; export declare const toSectionsProps: (relations: Relation<"section", SectionAttributes>[], mediaBase: string) => SectionProps[]; export declare const toStatisticsPageLinkProps: (data: SubjectCategoryPageLink) => StatisticspageLinkProps | undefined; export declare const toStatisticspageProps: (pageData: StatisticspageAttributes | StatisticspageData | Relation<"page", PageAttributes>, mediaBase: string) => StatisticspageProps; export declare const toSubjectCategoryProps: (categoryAttributes: SubjectCategoryAttributes, subjectSlug: string) => SubjectCategoryProps; export declare const toSubjectCategoriesProps: (categoriesAttributes: SubjectCategoryAttributes[], subjectSlug: string) => SubjectCategoryProps[]; export declare const toStatisticspagesProps: (pagesData: StatisticspageData[] | Relation<"page", PageAttributes>[] | SubjectCategoryPageLink[], mediaBase: string) => StatisticspageProps[]; export declare const toSubjectSummaryProps: (summary: SubjectSummaryAttributes) => SubjectSummaryLinkProps; export declare const toSubjectProps: (subjectData: Data | (Relation<"subject", SubjectAttributes> & SubjectLinkProps)) => SubjectProps | undefined; export declare const toSubjectsProps: (subjects: ((Relation<"subject", SubjectAttributes> & SubjectLinkProps) | Data)[]) => SubjectProps[]; export declare const toSubjectGroupProps: (subjectGroup: SubjectGroup) => SubjectGroupProps; export declare const toSubjectLinkProps: (subjectRelation: SubjectsRelation) => SubjectLinkProps; export declare const toHomeProps: (homepageData: HomepageData) => HomeProps | undefined; export declare const toMainPoint: (point: MainPointItem) => MainPointProps; export declare const createFakeResponse: (status: number, data: unknown) => { status: number; statusText: string; internal: boolean; data: unknown; };