import type { PhotonTsCompletionKind, PhotonTsWorkerRequest, PhotonTsWorkerResponse } from './photon-ts-protocol.js'; import type { PhotonTsCodeFix, PhotonTsDefinition, PhotonTsDiagnostic, PhotonTsHover, PhotonTsOutlineItem, PhotonTsProjectFile, PhotonTsReferences, PhotonTsRenamePlan, PhotonTsSignatureHelp } from './photon-ts-types.js'; export interface PhotonTsTransport { send(request: PhotonTsWorkerRequest): PhotonTsWorkerResponse | Promise; dispose?(): void | Promise; } export interface PhotonTsCompletionEntry { label: string; detail?: string; kind: PhotonTsCompletionKind; } export declare class PhotonTsSession { private readonly transport; private nextId; constructor(transport: PhotonTsTransport); private request; sync(filePath: string, source: string, supportFiles?: PhotonTsProjectFile[]): Promise; diagnostics(filePath: string, source: string, supportFiles?: PhotonTsProjectFile[]): Promise; hover(filePath: string, source: string, pos: number, supportFiles?: PhotonTsProjectFile[]): Promise; definition(filePath: string, source: string, pos: number, supportFiles?: PhotonTsProjectFile[]): Promise; references(filePath: string, source: string, pos: number, supportFiles?: PhotonTsProjectFile[]): Promise; rename(filePath: string, source: string, pos: number, newName: string, supportFiles?: PhotonTsProjectFile[]): Promise; codeFixes(filePath: string, source: string, from: number, to: number, errorCode: number, supportFiles?: PhotonTsProjectFile[]): Promise; signatureHelp(filePath: string, source: string, pos: number, supportFiles?: PhotonTsProjectFile[]): Promise; outline(filePath: string, source: string, supportFiles?: PhotonTsProjectFile[]): Promise; completions(filePath: string, source: string, pos: number, explicit: boolean, supportFiles?: PhotonTsProjectFile[]): Promise; destroy(): Promise; } //# sourceMappingURL=photon-ts-session.d.ts.map