* The `'use server'` / `'use client'` directive a JS-family file opens with, * and whether the definition itself opens with `'use server'` (a server * action declared inline). Nothing for other languages or unreadable files.
(definition: { filePath: string; language: Language; startLine: number })
| 131 | * action declared inline). Nothing for other languages or unreadable files. |
| 132 | */ |
| 133 | directive(definition: { filePath: string; language: Language; startLine: number }): Promise<{ file: 'server' | 'client' | null; own: boolean }>; |
| 134 | /** A Swift `extension X {}` node — the index keeps it as a class, but it declares no type. */ |
| 135 | swiftExtension(definition: Pick<Node, 'filePath' | 'language' | 'kind' | 'startLine' | 'startColumn' | 'endLine'>): Promise<boolean>; |
| 136 | } |