import type { CustomPostTypes, CustomTaxonomies, HeadlessConfig } from '../types'; export declare function setHeadstartWPConfig(config: HeadlessConfig): void; export declare const setHeadlessConfig: typeof setHeadstartWPConfig; /** * Returns the contents of headless.config.js * * This function requires framework integration in order to work. The contents of `headless.config.js` * needs to be injected at build time into a global variable. * * Make sure you are using one of the framework's integration (such as next) before using this function. * * @returns The contents of headless.config.js */ export declare function getHeadstartWPConfig(): HeadlessConfig; export declare const getHeadlessConfig: typeof getHeadstartWPConfig; /** * Get a config for a specific site * * @param site * @returns */ export declare function getSite(site?: HeadlessConfig): HeadlessConfig; /** * Finds a site by host and optionally locale * * @param hostOrUrl The hostname * * @param locale * @returns */ export declare function getSiteByHost(hostOrUrl: string, locale?: string): HeadlessConfig | null; /** * Get a site by source url * * @param sourceUrl * @returns HeadlessConfig */ export declare function getSiteBySourceUrl(sourceUrl: string): HeadlessConfig; /** * Returns the available taxonomies * * @param sourceUrl */ export declare function getCustomTaxonomies(sourceUrl?: string): CustomTaxonomies; /** * Returns the available taxonomy slugs * * @param sourceUrl */ export declare function getCustomTaxonomySlugs(sourceUrl?: string): string[]; /** * Returns a single post type by slug if defined * * @param slug post type slug * @param sourceUrl */ export declare function getCustomTaxonomy(slug: string, sourceUrl?: string): import("../types").CustomTaxonomy | undefined; /** * Returns the available post types * * @param sourceUrl */ export declare function getCustomPostTypes(sourceUrl?: string): CustomPostTypes; /** * Returns the available post type slugs * * @param sourceUrl */ export declare function getCustomPostTypesSlugs(sourceUrl?: string): string[]; /** * Returns a single post type by slug if defined * * @param slug post type slug * @param sourceUrl */ export declare function getCustomPostType(slug: string, sourceUrl?: string): import("../types").CustomPostType | undefined; /** * Returns the WP URL based on the headless config */ export declare function getWPUrl(): string; /** * Returns the WP URL based on the headless config */ export declare function getHostUrl(): string;