/**
 * Internal dependencies
 */
import type { Attachment, RestAttachment } from './types';
/**
 * Transforms an attachment object from the REST API shape into the shape expected by the block editor and other consumers.
 *
 * @param attachment REST API attachment object.
 */
export declare function transformAttachment(attachment: RestAttachment): Attachment;
//# sourceMappingURL=transform-attachment.d.ts.map