import type { Node, Tag } from '@markdoc/markdoc'; /** * Retrieves the value of a given attribute from a Markdoc `Node` or `Tag`. * * This function checks if the specified attribute exists in the `attributes` object * of the provided node or tag, and returns its value if present. If the attribute * does not exist, `null` is returned. * * @template T - Expected type of the attribute value. * @param node - The Markdoc `Node` or `Tag` to retrieve the attribute from. * @param name - The name of the attribute to retrieve. * @returns The attribute value if found, otherwise `null`. */ export declare function getNodeAttribute(node: Node | Tag, name: string): T | null; //# sourceMappingURL=get-node-attribute.d.ts.map