import type { SafeEnvironment } from './client.js'; export type LinkType = 'internal' | 'external' | 'download' | 'blank'; export interface BuildLinkEntryFieldsOptions { type?: LinkType; label?: string; href?: string; /** Resolved Contentful entry ID for internal links */ internalEntryId?: string; assetId?: string; variant?: string; } /** * Resolve a page/article slug to a Contentful entry ID. */ export declare function resolveSlugToEntryId(env: SafeEnvironment, slug: string): Promise; /** * Build CMA locale-keyed fields for a new `link` content type entry. * Caller must resolve slug → entry ID before calling for internal links. */ export declare function buildLinkEntryFields(opts: BuildLinkEntryFieldsOptions, locale: string): Record>; export declare function getLinkFieldValue(fields: Record>, fieldId: string, locale: string): unknown; //# sourceMappingURL=link-fields.d.ts.map