/**
 * Common utilities shared between Workspace and LanguageServer APIs.
 */
import type { PGLSModule } from "./types";
/**
 * Load the WASM module.
 * This is called automatically by createWorkspace/createLanguageServer,
 * but can be called manually for preloading.
 */
export declare function loadWasm(): Promise<PGLSModule>;
/**
 * Allocate a string in WASM memory.
 */
export declare function allocateString(module: PGLSModule, str: string): number;
/**
 * Read and free a string from WASM memory.
 */
export declare function readAndFreeString(module: PGLSModule, ptr: number): string | null;
/**
 * Parse a result string that may be an error.
 */
export declare function parseResult<T>(str: string | null): T;
//# sourceMappingURL=common.d.ts.map