import { type TSESLint } from '@typescript-eslint/utils'; type Options = readonly [ Readonly<{ entryPoints?: readonly string[]; }>? ]; type MessageIds = 'typeOnlyCodec'; /** * A codec exists to check values at runtime. One declared next to * `type Y = t.TypeOf` and never read as a value is a type written the * long way round: it costs a runtime object and a bundle import, and it reads * as if something validated with it. This rule reports such a codec, so that * `Y` becomes a plain type alias. * * "Never read as a value" means: no value reference in its own file outside * `typeof`, every import of it elsewhere `import type`, and no entry point * re-exporting it. The entry points are what the nearest `package.json` * publishes, traced back to source, unless the `entryPoints` option names them. * The cross-file part reads the importers from the TypeScript program; without * type information, or when the published entry points cannot all be traced * back to source, an exported codec is left alone. */ export declare const noTypeOnlyCodec: TSESLint.RuleModule; export {}; //# sourceMappingURL=no-type-only-codec.d.mts.map