import { InferredContentReference, type PreviewContext } from '../../infer.js'; /** The parts of a content item the preview helpers read. */ type PreviewableContent = { __context?: PreviewContext; [key: string]: unknown; }; /** Get context-aware functions for preview */ export declare function getPreviewUtils(content: PreviewableContent): { /** Get the HTML data attributes required for a property */ pa(property?: string | { key: string; }): Record; /** * The URL of a ContentReference's asset, or of a plain URL string. * Carries the preview token only when the preview opted in with `forceMediaToken`. * * @param input - ContentReference from a DAM asset * @returns The asset URL, or undefined when there is none * * @example * ```tsx * const { src } = getPreviewUtils(content); * * * ``` */ src(input: InferredContentReference | string | null | undefined): string | undefined; }; export {};