Project Files
src / lmstudio-sdk.d.ts
declare module "@lmstudio/sdk" {
export type ChatMessage = { getText(): string };
export type FileHandle = { type: string } & Record<string, unknown>;
export type PromptPreprocessorController = {
abortSignal: AbortSignal;
client: any;
pullHistory(): Promise<{
append(message: unknown): void;
getAllFiles(client: any): FileHandle[];
}>;
getPluginConfig<T = any>(schematics: T): any;
};
export type PluginContext = {
withConfigSchematics(schematics: any): PluginContext;
withPromptPreprocessor(preprocessor: any): PluginContext;
};
export function createConfigSchematics(): any;
export function text(value: string): unknown;
}