import { getMarkAttributes } from "./get-mark-attributes.js";
import { getNodeAttributes } from "./get-node-attributes.js";
import { getSchemaTypeNameByName } from "./get-schema-type-name-by-name.js";
function getAttributes(state, typeOrName) {
  const schemaType = getSchemaTypeNameByName(
    typeof typeOrName === "string" ? typeOrName : typeOrName.name,
    state.schema
  );
  if (schemaType === "node") {
    return getNodeAttributes(state, typeOrName);
  }
  if (schemaType === "mark") {
    return getMarkAttributes(state, typeOrName);
  }
  return {};
}
export {
  getAttributes
};
//# sourceMappingURL=get-attributes.js.map
