@utilix-tech/sdk 0.51.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,8 @@
22
22
  * - redos-detector (detectRedos)
23
23
  * - conventional-commit-linter (lintConventionalCommit)
24
24
  * - gitignore-tester (testGitignorePatterns)
25
+ * - editorconfig-validator (validateEditorConfig)
26
+ * - tsconfig-validator (validateTsconfig)
25
27
  */
26
28
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
27
29
  declare const ALL_FLAGS: RegexFlag[];
@@ -392,6 +394,61 @@ interface GitignoreTestResult {
392
394
  declare function testGitignorePatterns(gitignoreContent: string, paths: string[]): GitignoreTestResult[] | {
393
395
  error: string;
394
396
  };
397
+ interface EditorConfigProperty {
398
+ key: string;
399
+ value: string;
400
+ line: number;
401
+ }
402
+ interface EditorConfigSection {
403
+ glob: string;
404
+ line: number;
405
+ properties: EditorConfigProperty[];
406
+ }
407
+ interface EditorConfigIssue {
408
+ severity: 'error' | 'warning';
409
+ line: number;
410
+ message: string;
411
+ }
412
+ interface EditorConfigValidationResult {
413
+ root: boolean;
414
+ sections: EditorConfigSection[];
415
+ issues: EditorConfigIssue[];
416
+ valid: boolean;
417
+ }
418
+ /**
419
+ * Validate an .editorconfig file: parse it into its root flag and glob
420
+ * sections, and flag structural mistakes against the EditorConfig spec —
421
+ * unknown properties, invalid values for known properties (indent_style,
422
+ * end_of_line, charset, indent_size, tab_width, max_line_length), a `root`
423
+ * declaration outside the file's preamble, and duplicate properties within
424
+ * the same section.
425
+ */
426
+ declare function validateEditorConfig(text: string): EditorConfigValidationResult | {
427
+ error: string;
428
+ };
429
+ interface TsconfigIssue {
430
+ severity: 'error' | 'warning';
431
+ path: string;
432
+ message: string;
433
+ }
434
+ interface TsconfigValidationResult {
435
+ parsed: true;
436
+ topLevelKeys: string[];
437
+ compilerOptionKeys: string[];
438
+ issues: TsconfigIssue[];
439
+ valid: boolean;
440
+ }
441
+ /**
442
+ * Validate a tsconfig.json file: parse it as JSONC (`//` and `/* *\/`
443
+ * comments plus trailing commas are stripped before parsing, matching how
444
+ * `tsc` itself reads the file) and flag structural mistakes — unknown
445
+ * top-level keys, unknown `compilerOptions` keys, wrong types (a boolean
446
+ * option given a string, an enum option given a value outside its known
447
+ * set), and malformed `files`/`include`/`exclude`/`references`/`paths`.
448
+ */
449
+ declare function validateTsconfig(text: string): TsconfigValidationResult | {
450
+ error: string;
451
+ };
395
452
 
396
453
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
397
454
  type code_ApiEndpoint = ApiEndpoint;
@@ -407,6 +464,10 @@ type code_ConventionalCommitSeverity = ConventionalCommitSeverity;
407
464
  type code_CssResult = CssResult;
408
465
  declare const code_DEFAULT_COMMIT_TYPES: typeof DEFAULT_COMMIT_TYPES;
409
466
  type code_DockerImageRef = DockerImageRef;
467
+ type code_EditorConfigIssue = EditorConfigIssue;
468
+ type code_EditorConfigProperty = EditorConfigProperty;
469
+ type code_EditorConfigSection = EditorConfigSection;
470
+ type code_EditorConfigValidationResult = EditorConfigValidationResult;
410
471
  type code_EnvEntry = EnvEntry;
411
472
  type code_EnvParseResult = EnvParseResult;
412
473
  type code_GitCommandConfig = GitCommandConfig;
@@ -441,6 +502,8 @@ type code_SpecVersion = SpecVersion;
441
502
  type code_SqlDialect = SqlDialect;
442
503
  type code_SqlFormatOptions = SqlFormatOptions;
443
504
  type code_TestPatternResult = TestPatternResult;
505
+ type code_TsconfigIssue = TsconfigIssue;
506
+ type code_TsconfigValidationResult = TsconfigValidationResult;
444
507
  declare const code_buildDockerPull: typeof buildDockerPull;
445
508
  declare const code_buildDockerRun: typeof buildDockerRun;
446
509
  declare const code_buildGitCommand: typeof buildGitCommand;
@@ -486,9 +549,11 @@ declare const code_splitStatements: typeof splitStatements;
486
549
  declare const code_testGitignorePatterns: typeof testGitignorePatterns;
487
550
  declare const code_testPattern: typeof testPattern;
488
551
  declare const code_testRegex: typeof testRegex;
552
+ declare const code_validateEditorConfig: typeof validateEditorConfig;
489
553
  declare const code_validateEnvKey: typeof validateEnvKey;
554
+ declare const code_validateTsconfig: typeof validateTsconfig;
490
555
  declare namespace code {
491
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
556
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateTsconfig as validateTsconfig };
492
557
  }
493
558
 
494
- export { collapseJsWhitespace as $, ALL_FLAGS as A, type RedosSeverity as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EnvEntry as E, type RegexError as F, type GitCommandConfig as G, type HtmlFormatResult as H, type RegexFlag as I, type JsMinifyOptions as J, type RegexMatch as K, type RegexResult as L, MIME_TABLE as M, type RegexSuccess as N, OPERATIONS as O, type ParsedSpec as P, type Segment as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type SpecVersion as T, type SqlDialect as U, type SqlFormatOptions as V, type TestPatternResult as W, buildDockerPull as X, buildDockerRun as Y, buildGitCommand as Z, collapseHtmlWhitespace as _, type ApiEndpoint as a, countProperties as a0, countRules as a1, detectDialect as a2, detectOperationType as a3, detectRedos as a4, envToExport as a5, envToJson as a6, formatCss as a7, formatGql as a8, formatHtml as a9, splitStatements as aA, testGitignorePatterns as aB, testPattern as aC, testRegex as aD, validateEnvKey as aE, formatSql as aa, getEndpointsByTag as ab, getHtmlStats as ac, getJsStats as ad, getMethodColor as ae, isValidTag as af, lintConventionalCommit as ag, lookupMime as ah, minifyCss as ai, minifyGql as aj, minifyHtml as ak, minifyJs as al, minifySql as am, normalizeRef as an, parseDockerImage as ao, parseEnv as ap, parseGitCommand as aq, parseGithubUrl as ar, parseSpec as as, removeConsoleCalls as at, removeEmptyAttributes as au, removeHtmlComments as av, removeJsComments as aw, removeRedundantAttributes as ax, searchCheatsheet as ay, searchEndpoints as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EnvParseResult as m, type GitCommandResult as n, type GitOperation as o, type GithubUrlInfo as p, type GithubUrlType as q, type GitignoreTestResult as r, type GqlFormatResult as s, type HtmlMinifyOptions as t, type HtmlMinifyResult as u, type JsMinifyResult as v, type MatchResult as w, type MimeEntry as x, type MimeLookupResult as y, type RedosResult as z };
559
+ export { type TsconfigIssue as $, ALL_FLAGS as A, type MatchResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type MimeEntry as F, type GitCommandConfig as G, type HtmlFormatResult as H, type MimeLookupResult as I, type JsMinifyOptions as J, type RedosResult as K, type RedosSeverity as L, MIME_TABLE as M, type RegexError as N, OPERATIONS as O, type ParsedSpec as P, type RegexFlag as Q, type RedosFinding as R, type RegexMatch as S, type RegexResult as T, type RegexSuccess as U, SQL_DEFAULT_OPTIONS as V, type Segment as W, type SpecVersion as X, type SqlDialect as Y, type SqlFormatOptions as Z, type TestPatternResult as _, type ApiEndpoint as a, type TsconfigValidationResult as a0, buildDockerPull as a1, buildDockerRun as a2, buildGitCommand as a3, collapseHtmlWhitespace as a4, collapseJsWhitespace as a5, countProperties as a6, countRules as a7, detectDialect as a8, detectOperationType as a9, removeEmptyAttributes as aA, removeHtmlComments as aB, removeJsComments as aC, removeRedundantAttributes as aD, searchCheatsheet as aE, searchEndpoints as aF, splitStatements as aG, testGitignorePatterns as aH, testPattern as aI, testRegex as aJ, validateEditorConfig as aK, validateEnvKey as aL, validateTsconfig as aM, detectRedos as aa, envToExport as ab, envToJson as ac, formatCss as ad, formatGql as ae, formatHtml as af, formatSql as ag, getEndpointsByTag as ah, getHtmlStats as ai, getJsStats as aj, getMethodColor as ak, isValidTag as al, lintConventionalCommit as am, lookupMime as an, minifyCss as ao, minifyGql as ap, minifyHtml as aq, minifyJs as ar, minifySql as as, normalizeRef as at, parseDockerImage as au, parseEnv as av, parseGitCommand as aw, parseGithubUrl as ax, parseSpec as ay, removeConsoleCalls as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EditorConfigProperty as m, type EditorConfigSection as n, type EditorConfigValidationResult as o, type EnvEntry as p, type EnvParseResult as q, type GitCommandResult as r, type GitOperation as s, type GithubUrlInfo as t, type GithubUrlType as u, type GitignoreTestResult as v, type GqlFormatResult as w, type HtmlMinifyOptions as x, type HtmlMinifyResult as y, type JsMinifyResult as z };
@@ -22,6 +22,8 @@
22
22
  * - redos-detector (detectRedos)
23
23
  * - conventional-commit-linter (lintConventionalCommit)
24
24
  * - gitignore-tester (testGitignorePatterns)
25
+ * - editorconfig-validator (validateEditorConfig)
26
+ * - tsconfig-validator (validateTsconfig)
25
27
  */
26
28
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
27
29
  declare const ALL_FLAGS: RegexFlag[];
@@ -392,6 +394,61 @@ interface GitignoreTestResult {
392
394
  declare function testGitignorePatterns(gitignoreContent: string, paths: string[]): GitignoreTestResult[] | {
393
395
  error: string;
394
396
  };
397
+ interface EditorConfigProperty {
398
+ key: string;
399
+ value: string;
400
+ line: number;
401
+ }
402
+ interface EditorConfigSection {
403
+ glob: string;
404
+ line: number;
405
+ properties: EditorConfigProperty[];
406
+ }
407
+ interface EditorConfigIssue {
408
+ severity: 'error' | 'warning';
409
+ line: number;
410
+ message: string;
411
+ }
412
+ interface EditorConfigValidationResult {
413
+ root: boolean;
414
+ sections: EditorConfigSection[];
415
+ issues: EditorConfigIssue[];
416
+ valid: boolean;
417
+ }
418
+ /**
419
+ * Validate an .editorconfig file: parse it into its root flag and glob
420
+ * sections, and flag structural mistakes against the EditorConfig spec —
421
+ * unknown properties, invalid values for known properties (indent_style,
422
+ * end_of_line, charset, indent_size, tab_width, max_line_length), a `root`
423
+ * declaration outside the file's preamble, and duplicate properties within
424
+ * the same section.
425
+ */
426
+ declare function validateEditorConfig(text: string): EditorConfigValidationResult | {
427
+ error: string;
428
+ };
429
+ interface TsconfigIssue {
430
+ severity: 'error' | 'warning';
431
+ path: string;
432
+ message: string;
433
+ }
434
+ interface TsconfigValidationResult {
435
+ parsed: true;
436
+ topLevelKeys: string[];
437
+ compilerOptionKeys: string[];
438
+ issues: TsconfigIssue[];
439
+ valid: boolean;
440
+ }
441
+ /**
442
+ * Validate a tsconfig.json file: parse it as JSONC (`//` and `/* *\/`
443
+ * comments plus trailing commas are stripped before parsing, matching how
444
+ * `tsc` itself reads the file) and flag structural mistakes — unknown
445
+ * top-level keys, unknown `compilerOptions` keys, wrong types (a boolean
446
+ * option given a string, an enum option given a value outside its known
447
+ * set), and malformed `files`/`include`/`exclude`/`references`/`paths`.
448
+ */
449
+ declare function validateTsconfig(text: string): TsconfigValidationResult | {
450
+ error: string;
451
+ };
395
452
 
396
453
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
397
454
  type code_ApiEndpoint = ApiEndpoint;
@@ -407,6 +464,10 @@ type code_ConventionalCommitSeverity = ConventionalCommitSeverity;
407
464
  type code_CssResult = CssResult;
408
465
  declare const code_DEFAULT_COMMIT_TYPES: typeof DEFAULT_COMMIT_TYPES;
409
466
  type code_DockerImageRef = DockerImageRef;
467
+ type code_EditorConfigIssue = EditorConfigIssue;
468
+ type code_EditorConfigProperty = EditorConfigProperty;
469
+ type code_EditorConfigSection = EditorConfigSection;
470
+ type code_EditorConfigValidationResult = EditorConfigValidationResult;
410
471
  type code_EnvEntry = EnvEntry;
411
472
  type code_EnvParseResult = EnvParseResult;
412
473
  type code_GitCommandConfig = GitCommandConfig;
@@ -441,6 +502,8 @@ type code_SpecVersion = SpecVersion;
441
502
  type code_SqlDialect = SqlDialect;
442
503
  type code_SqlFormatOptions = SqlFormatOptions;
443
504
  type code_TestPatternResult = TestPatternResult;
505
+ type code_TsconfigIssue = TsconfigIssue;
506
+ type code_TsconfigValidationResult = TsconfigValidationResult;
444
507
  declare const code_buildDockerPull: typeof buildDockerPull;
445
508
  declare const code_buildDockerRun: typeof buildDockerRun;
446
509
  declare const code_buildGitCommand: typeof buildGitCommand;
@@ -486,9 +549,11 @@ declare const code_splitStatements: typeof splitStatements;
486
549
  declare const code_testGitignorePatterns: typeof testGitignorePatterns;
487
550
  declare const code_testPattern: typeof testPattern;
488
551
  declare const code_testRegex: typeof testRegex;
552
+ declare const code_validateEditorConfig: typeof validateEditorConfig;
489
553
  declare const code_validateEnvKey: typeof validateEnvKey;
554
+ declare const code_validateTsconfig: typeof validateTsconfig;
490
555
  declare namespace code {
491
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
556
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateTsconfig as validateTsconfig };
492
557
  }
493
558
 
494
- export { collapseJsWhitespace as $, ALL_FLAGS as A, type RedosSeverity as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EnvEntry as E, type RegexError as F, type GitCommandConfig as G, type HtmlFormatResult as H, type RegexFlag as I, type JsMinifyOptions as J, type RegexMatch as K, type RegexResult as L, MIME_TABLE as M, type RegexSuccess as N, OPERATIONS as O, type ParsedSpec as P, type Segment as Q, type RedosFinding as R, SQL_DEFAULT_OPTIONS as S, type SpecVersion as T, type SqlDialect as U, type SqlFormatOptions as V, type TestPatternResult as W, buildDockerPull as X, buildDockerRun as Y, buildGitCommand as Z, collapseHtmlWhitespace as _, type ApiEndpoint as a, countProperties as a0, countRules as a1, detectDialect as a2, detectOperationType as a3, detectRedos as a4, envToExport as a5, envToJson as a6, formatCss as a7, formatGql as a8, formatHtml as a9, splitStatements as aA, testGitignorePatterns as aB, testPattern as aC, testRegex as aD, validateEnvKey as aE, formatSql as aa, getEndpointsByTag as ab, getHtmlStats as ac, getJsStats as ad, getMethodColor as ae, isValidTag as af, lintConventionalCommit as ag, lookupMime as ah, minifyCss as ai, minifyGql as aj, minifyHtml as ak, minifyJs as al, minifySql as am, normalizeRef as an, parseDockerImage as ao, parseEnv as ap, parseGitCommand as aq, parseGithubUrl as ar, parseSpec as as, removeConsoleCalls as at, removeEmptyAttributes as au, removeHtmlComments as av, removeJsComments as aw, removeRedundantAttributes as ax, searchCheatsheet as ay, searchEndpoints as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EnvParseResult as m, type GitCommandResult as n, type GitOperation as o, type GithubUrlInfo as p, type GithubUrlType as q, type GitignoreTestResult as r, type GqlFormatResult as s, type HtmlMinifyOptions as t, type HtmlMinifyResult as u, type JsMinifyResult as v, type MatchResult as w, type MimeEntry as x, type MimeLookupResult as y, type RedosResult as z };
559
+ export { type TsconfigIssue as $, ALL_FLAGS as A, type MatchResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type MimeEntry as F, type GitCommandConfig as G, type HtmlFormatResult as H, type MimeLookupResult as I, type JsMinifyOptions as J, type RedosResult as K, type RedosSeverity as L, MIME_TABLE as M, type RegexError as N, OPERATIONS as O, type ParsedSpec as P, type RegexFlag as Q, type RedosFinding as R, type RegexMatch as S, type RegexResult as T, type RegexSuccess as U, SQL_DEFAULT_OPTIONS as V, type Segment as W, type SpecVersion as X, type SqlDialect as Y, type SqlFormatOptions as Z, type TestPatternResult as _, type ApiEndpoint as a, type TsconfigValidationResult as a0, buildDockerPull as a1, buildDockerRun as a2, buildGitCommand as a3, collapseHtmlWhitespace as a4, collapseJsWhitespace as a5, countProperties as a6, countRules as a7, detectDialect as a8, detectOperationType as a9, removeEmptyAttributes as aA, removeHtmlComments as aB, removeJsComments as aC, removeRedundantAttributes as aD, searchCheatsheet as aE, searchEndpoints as aF, splitStatements as aG, testGitignorePatterns as aH, testPattern as aI, testRegex as aJ, validateEditorConfig as aK, validateEnvKey as aL, validateTsconfig as aM, detectRedos as aa, envToExport as ab, envToJson as ac, formatCss as ad, formatGql as ae, formatHtml as af, formatSql as ag, getEndpointsByTag as ah, getHtmlStats as ai, getJsStats as aj, getMethodColor as ak, isValidTag as al, lintConventionalCommit as am, lookupMime as an, minifyCss as ao, minifyGql as ap, minifyHtml as aq, minifyJs as ar, minifySql as as, normalizeRef as at, parseDockerImage as au, parseEnv as av, parseGitCommand as aw, parseGithubUrl as ax, parseSpec as ay, removeConsoleCalls as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EditorConfigProperty as m, type EditorConfigSection as n, type EditorConfigValidationResult as o, type EnvEntry as p, type EnvParseResult as q, type GitCommandResult as r, type GitOperation as s, type GithubUrlInfo as t, type GithubUrlType as u, type GitignoreTestResult as v, type GqlFormatResult as w, type HtmlMinifyOptions as x, type HtmlMinifyResult as y, type JsMinifyResult as z };
@@ -277,6 +277,38 @@ declare function convertSubtitles(input: string, target: SubtitleFormat, sourceF
277
277
  declare function shiftSubtitles(input: string, offsetSeconds: number, target?: SubtitleFormat): ConvertedSubtitles | {
278
278
  error: string;
279
279
  };
280
+ interface CaptionSpeedCue {
281
+ index: number;
282
+ start: number;
283
+ end: number;
284
+ text: string;
285
+ durationSeconds: number;
286
+ wordCount: number;
287
+ charCount: number;
288
+ wpm: number;
289
+ charsPerSecond: number;
290
+ exceedsWpm: boolean;
291
+ exceedsCps: boolean;
292
+ }
293
+ interface CaptionSpeedResult {
294
+ cueCount: number;
295
+ cues: CaptionSpeedCue[];
296
+ averageWpm: number;
297
+ maxWpm: number;
298
+ flaggedCount: number;
299
+ wpmThreshold: number;
300
+ cpsThreshold: number;
301
+ }
302
+ /**
303
+ * Parse an SRT or WebVTT file and report the words-per-minute reading speed
304
+ * implied by each cue's word count and duration, flagging cues that exceed
305
+ * common broadcast accessibility guidelines (default: ~180 WPM, ~20
306
+ * characters/second). Built on parseSubtitles for cue extraction; HTML-style
307
+ * cue tags like <i> are stripped before counting words and characters.
308
+ */
309
+ declare function analyzeCaptionSpeed(input: string, wpmThreshold?: number, cpsThreshold?: number): CaptionSpeedResult | {
310
+ error: string;
311
+ };
280
312
  interface FrontMatterResult {
281
313
  frontMatter: Record<string, unknown>;
282
314
  body: string;
@@ -427,6 +459,8 @@ declare function calculateMarkdownTaskListProgress(markdown: string): MarkdownTa
427
459
  error: string;
428
460
  };
429
461
 
462
+ type data_CaptionSpeedCue = CaptionSpeedCue;
463
+ type data_CaptionSpeedResult = CaptionSpeedResult;
430
464
  type data_ConvertedSubtitles = ConvertedSubtitles;
431
465
  type data_CsvDuplicateGroup = CsvDuplicateGroup;
432
466
  type data_CsvDuplicateOptions = CsvDuplicateOptions;
@@ -461,6 +495,7 @@ type data_XmlToJsonOptions = XmlToJsonOptions;
461
495
  type data_YamlAnchorInfo = YamlAnchorInfo;
462
496
  type data_YamlAnchorResolveError = YamlAnchorResolveError;
463
497
  type data_YamlAnchorResolveResult = YamlAnchorResolveResult;
498
+ declare const data_analyzeCaptionSpeed: typeof analyzeCaptionSpeed;
464
499
  declare const data_calculateMarkdownTaskListProgress: typeof calculateMarkdownTaskListProgress;
465
500
  declare const data_convertSubtitles: typeof convertSubtitles;
466
501
  declare const data_csvToJson: typeof csvToJson;
@@ -511,7 +546,7 @@ declare const data_validateXml: typeof validateXml;
511
546
  declare const data_validateYaml: typeof validateYaml;
512
547
  declare const data_xmlToJson: typeof xmlToJson;
513
548
  declare namespace data {
514
- export { type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_IniSection as IniSection, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
549
+ export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_IniSection as IniSection, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, data_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
515
550
  }
516
551
 
517
- export { getXmlStats as $, csvToSqlInsert as A, detectDelimiter as B, type ConvertedSubtitles as C, detectSubtitleFormat as D, type EnvDiffError as E, type FrontMatterError as F, diffEnvExample as G, envToExport as H, type IniSection as I, envToJson as J, findCsvDuplicateRows as K, formatNdjson as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, formatSubtitleTimestamp as O, type ParseOptions as P, formatToml as Q, formatXml as R, type SubtitleCue as S, type TomlFormatResult as T, generateMarkdownToc as U, type ValidationResult as V, getSection as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, getSectionNames as Z, getTomlStats as _, type CsvDuplicateGroup as a, getYamlStats as a0, iniToJson as a1, jsonArrayToNdjson as a2, jsonToIni as a3, jsonToToml as a4, jsonToXml as a5, minifyNdjson as a6, minifyToml as a7, minifyXml as a8, ndjsonToJsonArray as a9, parseCsv as aa, parseEnv as ab, parseFrontMatter as ac, parseIni as ad, parseSubtitleTimestamp as ae, parseSubtitles as af, parseXmlToObject as ag, resolveYamlAnchors as ah, serializeSubtitles as ai, shiftSubtitles as aj, stringifyIni as ak, toCsvString as al, tomlToJson as am, validateEnvKey as an, validateIni as ao, validateNdjson as ap, validateToml as aq, validateXml as ar, validateYaml as as, xmlToJson as at, type CsvDuplicateOptions as b, type CsvDuplicateResult as c, data as d, type CsvParseResult as e, type CsvToSqlOptions as f, type CsvToSqlResult as g, type EnvDiffResult as h, type EnvEntry as i, type EnvParseResult as j, type FrontMatterResult as k, type MarkdownTaskListProgressResult as l, type MarkdownTaskListSectionSummary as m, type MarkdownTocEntry as n, type MarkdownTocOptions as o, type MarkdownTocResult as p, type NdjsonValidateResult as q, type ParsedIni as r, type ParsedSubtitles as s, type SubtitleFormat as t, type XmlToJsonOptions as u, type YamlAnchorResolveError as v, type YamlAnchorResolveResult as w, calculateMarkdownTaskListProgress as x, convertSubtitles as y, csvToJson as z };
552
+ export { getSection as $, calculateMarkdownTaskListProgress as A, convertSubtitles as B, type CaptionSpeedCue as C, csvToJson as D, type EnvDiffError as E, type FrontMatterError as F, csvToSqlInsert as G, detectDelimiter as H, type IniSection as I, detectSubtitleFormat as J, diffEnvExample as K, envToExport as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, envToJson as O, type ParseOptions as P, findCsvDuplicateRows as Q, formatNdjson as R, type SubtitleCue as S, type TomlFormatResult as T, formatSubtitleTimestamp as U, type ValidationResult as V, formatToml as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, formatXml as Z, generateMarkdownToc as _, type CaptionSpeedResult as a, getSectionNames as a0, getTomlStats as a1, getXmlStats as a2, getYamlStats as a3, iniToJson as a4, jsonArrayToNdjson as a5, jsonToIni as a6, jsonToToml as a7, jsonToXml as a8, minifyNdjson as a9, minifyToml as aa, minifyXml as ab, ndjsonToJsonArray as ac, parseCsv as ad, parseEnv as ae, parseFrontMatter as af, parseIni as ag, parseSubtitleTimestamp as ah, parseSubtitles as ai, parseXmlToObject as aj, resolveYamlAnchors as ak, serializeSubtitles as al, shiftSubtitles as am, stringifyIni as an, toCsvString as ao, tomlToJson as ap, validateEnvKey as aq, validateIni as ar, validateNdjson as as, validateToml as at, validateXml as au, validateYaml as av, xmlToJson as aw, type ConvertedSubtitles as b, type CsvDuplicateGroup as c, data as d, type CsvDuplicateOptions as e, type CsvDuplicateResult as f, type CsvParseResult as g, type CsvToSqlOptions as h, type CsvToSqlResult as i, type EnvDiffResult as j, type EnvEntry as k, type EnvParseResult as l, type FrontMatterResult as m, type MarkdownTaskListProgressResult as n, type MarkdownTaskListSectionSummary as o, type MarkdownTocEntry as p, type MarkdownTocOptions as q, type MarkdownTocResult as r, type NdjsonValidateResult as s, type ParsedIni as t, type ParsedSubtitles as u, type SubtitleFormat as v, type XmlToJsonOptions as w, type YamlAnchorResolveError as x, type YamlAnchorResolveResult as y, analyzeCaptionSpeed as z };
@@ -277,6 +277,38 @@ declare function convertSubtitles(input: string, target: SubtitleFormat, sourceF
277
277
  declare function shiftSubtitles(input: string, offsetSeconds: number, target?: SubtitleFormat): ConvertedSubtitles | {
278
278
  error: string;
279
279
  };
280
+ interface CaptionSpeedCue {
281
+ index: number;
282
+ start: number;
283
+ end: number;
284
+ text: string;
285
+ durationSeconds: number;
286
+ wordCount: number;
287
+ charCount: number;
288
+ wpm: number;
289
+ charsPerSecond: number;
290
+ exceedsWpm: boolean;
291
+ exceedsCps: boolean;
292
+ }
293
+ interface CaptionSpeedResult {
294
+ cueCount: number;
295
+ cues: CaptionSpeedCue[];
296
+ averageWpm: number;
297
+ maxWpm: number;
298
+ flaggedCount: number;
299
+ wpmThreshold: number;
300
+ cpsThreshold: number;
301
+ }
302
+ /**
303
+ * Parse an SRT or WebVTT file and report the words-per-minute reading speed
304
+ * implied by each cue's word count and duration, flagging cues that exceed
305
+ * common broadcast accessibility guidelines (default: ~180 WPM, ~20
306
+ * characters/second). Built on parseSubtitles for cue extraction; HTML-style
307
+ * cue tags like <i> are stripped before counting words and characters.
308
+ */
309
+ declare function analyzeCaptionSpeed(input: string, wpmThreshold?: number, cpsThreshold?: number): CaptionSpeedResult | {
310
+ error: string;
311
+ };
280
312
  interface FrontMatterResult {
281
313
  frontMatter: Record<string, unknown>;
282
314
  body: string;
@@ -427,6 +459,8 @@ declare function calculateMarkdownTaskListProgress(markdown: string): MarkdownTa
427
459
  error: string;
428
460
  };
429
461
 
462
+ type data_CaptionSpeedCue = CaptionSpeedCue;
463
+ type data_CaptionSpeedResult = CaptionSpeedResult;
430
464
  type data_ConvertedSubtitles = ConvertedSubtitles;
431
465
  type data_CsvDuplicateGroup = CsvDuplicateGroup;
432
466
  type data_CsvDuplicateOptions = CsvDuplicateOptions;
@@ -461,6 +495,7 @@ type data_XmlToJsonOptions = XmlToJsonOptions;
461
495
  type data_YamlAnchorInfo = YamlAnchorInfo;
462
496
  type data_YamlAnchorResolveError = YamlAnchorResolveError;
463
497
  type data_YamlAnchorResolveResult = YamlAnchorResolveResult;
498
+ declare const data_analyzeCaptionSpeed: typeof analyzeCaptionSpeed;
464
499
  declare const data_calculateMarkdownTaskListProgress: typeof calculateMarkdownTaskListProgress;
465
500
  declare const data_convertSubtitles: typeof convertSubtitles;
466
501
  declare const data_csvToJson: typeof csvToJson;
@@ -511,7 +546,7 @@ declare const data_validateXml: typeof validateXml;
511
546
  declare const data_validateYaml: typeof validateYaml;
512
547
  declare const data_xmlToJson: typeof xmlToJson;
513
548
  declare namespace data {
514
- export { type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_IniSection as IniSection, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
549
+ export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_IniSection as IniSection, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, data_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
515
550
  }
516
551
 
517
- export { getXmlStats as $, csvToSqlInsert as A, detectDelimiter as B, type ConvertedSubtitles as C, detectSubtitleFormat as D, type EnvDiffError as E, type FrontMatterError as F, diffEnvExample as G, envToExport as H, type IniSection as I, envToJson as J, findCsvDuplicateRows as K, formatNdjson as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, formatSubtitleTimestamp as O, type ParseOptions as P, formatToml as Q, formatXml as R, type SubtitleCue as S, type TomlFormatResult as T, generateMarkdownToc as U, type ValidationResult as V, getSection as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, getSectionNames as Z, getTomlStats as _, type CsvDuplicateGroup as a, getYamlStats as a0, iniToJson as a1, jsonArrayToNdjson as a2, jsonToIni as a3, jsonToToml as a4, jsonToXml as a5, minifyNdjson as a6, minifyToml as a7, minifyXml as a8, ndjsonToJsonArray as a9, parseCsv as aa, parseEnv as ab, parseFrontMatter as ac, parseIni as ad, parseSubtitleTimestamp as ae, parseSubtitles as af, parseXmlToObject as ag, resolveYamlAnchors as ah, serializeSubtitles as ai, shiftSubtitles as aj, stringifyIni as ak, toCsvString as al, tomlToJson as am, validateEnvKey as an, validateIni as ao, validateNdjson as ap, validateToml as aq, validateXml as ar, validateYaml as as, xmlToJson as at, type CsvDuplicateOptions as b, type CsvDuplicateResult as c, data as d, type CsvParseResult as e, type CsvToSqlOptions as f, type CsvToSqlResult as g, type EnvDiffResult as h, type EnvEntry as i, type EnvParseResult as j, type FrontMatterResult as k, type MarkdownTaskListProgressResult as l, type MarkdownTaskListSectionSummary as m, type MarkdownTocEntry as n, type MarkdownTocOptions as o, type MarkdownTocResult as p, type NdjsonValidateResult as q, type ParsedIni as r, type ParsedSubtitles as s, type SubtitleFormat as t, type XmlToJsonOptions as u, type YamlAnchorResolveError as v, type YamlAnchorResolveResult as w, calculateMarkdownTaskListProgress as x, convertSubtitles as y, csvToJson as z };
552
+ export { getSection as $, calculateMarkdownTaskListProgress as A, convertSubtitles as B, type CaptionSpeedCue as C, csvToJson as D, type EnvDiffError as E, type FrontMatterError as F, csvToSqlInsert as G, detectDelimiter as H, type IniSection as I, detectSubtitleFormat as J, diffEnvExample as K, envToExport as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, envToJson as O, type ParseOptions as P, findCsvDuplicateRows as Q, formatNdjson as R, type SubtitleCue as S, type TomlFormatResult as T, formatSubtitleTimestamp as U, type ValidationResult as V, formatToml as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, formatXml as Z, generateMarkdownToc as _, type CaptionSpeedResult as a, getSectionNames as a0, getTomlStats as a1, getXmlStats as a2, getYamlStats as a3, iniToJson as a4, jsonArrayToNdjson as a5, jsonToIni as a6, jsonToToml as a7, jsonToXml as a8, minifyNdjson as a9, minifyToml as aa, minifyXml as ab, ndjsonToJsonArray as ac, parseCsv as ad, parseEnv as ae, parseFrontMatter as af, parseIni as ag, parseSubtitleTimestamp as ah, parseSubtitles as ai, parseXmlToObject as aj, resolveYamlAnchors as ak, serializeSubtitles as al, shiftSubtitles as am, stringifyIni as an, toCsvString as ao, tomlToJson as ap, validateEnvKey as aq, validateIni as ar, validateNdjson as as, validateToml as at, validateXml as au, validateYaml as av, xmlToJson as aw, type ConvertedSubtitles as b, type CsvDuplicateGroup as c, data as d, type CsvDuplicateOptions as e, type CsvDuplicateResult as f, type CsvParseResult as g, type CsvToSqlOptions as h, type CsvToSqlResult as i, type EnvDiffResult as j, type EnvEntry as k, type EnvParseResult as l, type FrontMatterResult as m, type MarkdownTaskListProgressResult as n, type MarkdownTaskListSectionSummary as o, type MarkdownTocEntry as p, type MarkdownTocOptions as q, type MarkdownTocResult as r, type NdjsonValidateResult as s, type ParsedIni as t, type ParsedSubtitles as u, type SubtitleFormat as v, type XmlToJsonOptions as w, type YamlAnchorResolveError as x, type YamlAnchorResolveResult as y, analyzeCaptionSpeed as z };