import type { OptionalRichMediaAttributes } from './types/rich-media-common'; import type { NodeSpec } from '@atlaskit/editor-prosemirror/model'; export interface UrlType { localId?: string; /** // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @validatorFn safeUrl */ url: string; } export interface DataType { /** // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @additionalProperties true */ data: object; localId?: string; } export interface DatasourceAttributeProperties { id: string; parameters: object; /** // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @minItems 1 */ views: { properties?: object; type: string; }[]; } export interface DatasourceAttributes extends OptionalRichMediaAttributes { datasource: DatasourceAttributeProperties; localId?: string; /** // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @validatorFn safeUrl */ url?: string; } export type CardAttributes = UrlType | DataType; /** * @name blockCard_node */ export interface BlockCardDefinition { attrs: DatasourceAttributes | CardAttributes; type: 'blockCard'; } export declare const blockCard: NodeSpec; export declare const blockCardWithLocalId: NodeSpec;