import { type ItemIdentity } from "@contfu/core"; import type { Block } from "@contfu/core"; import { type CollectionSchema } from "@contfu/core"; export type LinkRecord = { kind: "internal"; prop: string | null; from: ItemIdentity; to: ItemIdentity; } | { kind: "external"; from: ItemIdentity; url: string; }; export interface ExtractedLinks { records: LinkRecord[]; props: Record; content: Block[] | null | undefined; } export declare function extractLinks(from: ItemIdentity, props: Record | undefined, content: Block[] | null | undefined, schema: CollectionSchema | null): ExtractedLinks; export declare function replacePlaceholders(props: Record, content: Block[] | null | undefined, schema: CollectionSchema | null, linkIds: number[]): { props: Record; content: Block[] | null | undefined; };