interface AstNode { readonly type: string; [key: string]: any; } /** * Options accepted by the require-exported-jsdoc-example rule. */ export interface UtilRequireExportedJsdocExampleRuleOptions { /** * JSDoc tag that opts a function out of the rule. Defaults to `@dbxAllowSkipExample`. */ readonly exemptJsdocTag?: string; /** * When true (the default), zero-parameter functions are skipped because their behavior is * usually clear from the description alone. */ readonly exemptNoArguments?: boolean; } /** * ESLint rule definition for require-exported-jsdoc-example. */ export interface UtilRequireExportedJsdocExampleRuleDefinition { readonly meta: { readonly type: 'suggestion'; readonly fixable: undefined; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly missingExample: string; }; readonly schema: readonly object[]; }; create(context: { options: UtilRequireExportedJsdocExampleRuleOptions[]; report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; sourceCode: AstNode; }): Record void>; } /** * ESLint rule that requires exported `function` declarations whose JSDoc is already present to * also include at least one `@example` tag. * * Differences from `jsdoc/require-example`: * - Fires only on **exported** FunctionDeclarations (top-level `export function …` or * `export default function …`). Internal helpers stay quiet. * - Fires only when the function actually has a leading JSDoc block — undocumented functions are * handled by `jsdoc/require-jsdoc`. * - Honors the `@dbxAllowSkipExample` JSDoc tag for per-declaration opt-out. * * Not auto-fixable: there's no way to synthesize a useful `@example` block automatically. * * @see `dbx__note__typescript-jsdocs` → "Function JSDocs Must Include Examples". */ export declare const UTIL_REQUIRE_EXPORTED_JSDOC_EXAMPLE_RULE: UtilRequireExportedJsdocExampleRuleDefinition; export {};