/** * @typedef {Object} NormalizedTableAttrs * @property {string | null} tableStyleId - Resolved style ID (null if source is 'none') * @property {Object} [borders] - Fallback borders when no style exists * @property {Object} [tableProperties] - Table properties including fallback cellMargins */ /** * Resolves the preferred table style ID from the editor's converter context. * Encapsulates settings access and style catalog lookup. * * @param {Object} editor - The super-editor instance * @returns {{ styleId: string | null, source: string }} */ export function resolvePreferredNewTableStyleIdFromEditor(editor: Object): { styleId: string | null; source: string; }; /** * Computes the attributes for a newly created table. * * When a style is resolved, returns only `tableStyleId` — borders come from * the style at render time via `resolveTableProperties`. * When no style exists (`source: 'none'`), returns inline fallback borders * and cell padding so the table renders with sensible defaults. * * @param {Object} editor - The super-editor instance * @returns {NormalizedTableAttrs} */ export function normalizeNewTableAttrs(editor: Object): NormalizedTableAttrs; /** * Fallback style ID for standalone contexts (markdown import without editor). * Matches Word behavior where `TableGrid` is always the default. */ export const STANDALONE_TABLE_STYLE_ID: "TableGrid"; export type NormalizedTableAttrs = { /** * - Resolved style ID (null if source is 'none') */ tableStyleId: string | null; /** * - Fallback borders when no style exists */ borders?: Object | undefined; /** * - Table properties including fallback cellMargins */ tableProperties?: Object | undefined; }; //# sourceMappingURL=normalizeNewTableAttrs.d.ts.map