import type { EntryProps } from 'contentful-management'; import type { SerializedEntry } from '../session/state.js'; import type { SafeEnvironment } from './client.js'; /** * Serializes a CMA Entry into the session's plain-object format. */ export declare function serializeEntry(entry: EntryProps): SerializedEntry; /** * Normalises a slug for Contentful storage: strips leading and trailing slashes; empty becomes `index`. */ export declare function normalizeSlug(slug: string): string; /** Slug values to try when querying Contentful (with and without leading slash). */ export declare function slugQueryVariants(slug: string): string[]; /** * Finds an entry of a specific content type by slug field. */ export declare function findEntryByContentTypeAndSlug(env: SafeEnvironment, contentType: string, slug: string): Promise; /** * Finds an entry by slug field. Searches page, article, articleType, tagType, and tag (one content type per query; * the Management API does not allow field filters across multiple content types). */ export declare function findEntryBySlug(env: SafeEnvironment, slug: string, _locale: string): Promise; /** * Fetches a full entry tree starting from a root entry ID. * Returns all entries keyed by ID. * Only resolves content array fields (not visual/asset fields). */ export declare function fetchEntryTree(env: SafeEnvironment, rootEntryId: string): Promise>; //# sourceMappingURL=fetch.d.ts.map