import { CueAuth } from './auth'; import { SearchRequest, SearchResponse, ShaclValidationReport, UnitsConsumedDto } from './models'; import { CueProjects } from './project'; import { CueSyncApi } from './sync'; import { CueTables } from './tables'; import { CueExtraction } from './extraction'; import { CueContexts } from './contexts'; import { CueIndexApi } from './index-api'; import { CueMcp } from './mcp'; import { CueAppData } from './app-data'; import { CueApps } from './apps'; import { CueUserSettings } from './user-settings'; import { CueProcessingApi } from './processing'; export declare class CueApi { private readonly _auth; private readonly _gatewayUrl; readonly projects: CueProjects; readonly sync?: CueSyncApi | undefined; readonly tables: CueTables; /** Semantic extraction client — call document pages against a SemanticTemplate. */ readonly extraction: CueExtraction; /** Session context file client — fetch and decompress context documents. */ readonly contexts: CueContexts; /** Direct interface to the Cue Index accessor — search and lookup. */ readonly index: CueIndexApi; /** Generic caller for Cue Index MCP data-tool endpoints — returns each tool's Context result (`{ id, text }`) proxied as-is. */ readonly mcp: CueMcp; /** Per-app, per-user data storage — small JSON blobs namespaced by app UUID. */ readonly appData: CueAppData; /** Studio apps saved and shared within an organization (e.g. built with the AI App Builder). */ readonly apps: CueApps; /** Global, per-user app settings — one small JSON blob shared across the whole portal (e.g. language). */ readonly userSettings: CueUserSettings; /** Live pipeline-progress status for a project (upload → processing → loading → enrichment). */ readonly processing: CueProcessingApi; /** Active language used for language-sensitive SPARQL queries across all project classes. */ language: string; /** Updates the active language. All project classes (`CueProjectSchema`, `CueProjectDocuments`, `CueProjectEntities`) read this at query time. */ setLanguage(lang: string): void; constructor(_auth: CueAuth, _gatewayUrl: string, projects: CueProjects, sync?: CueSyncApi | undefined); /** * Returns standard authentication headers for the current user. * Useful when calling Cue-backed services directly (e.g. the GIS proxy). */ getAuthHeaders(): Promise>; /** * Search project documents using natural language. * The user must be authenticated before calling this. */ search(request: SearchRequest): Promise; /** * Execute a SPARQL query against the project's triplestore. * The user must be authenticated before calling this. */ sparql(query: string, projectId: string, graphType?: string): Promise; /** * Validate a SHACL shape against the project's triplestore. * * @param shape - SHACL shapes graph in Turtle syntax. * @param projectId - Project to validate against. * @param options - `format`: `'json-ld'` (default, structured result) or `'turtle'` (raw string). * `verbose`: include server-side timing logs. * * Returns a {@link ShaclValidationReport} for JSON-LD, or a Turtle string. */ shacl(shape: string, projectId: string, options?: { format?: 'json-ld' | 'turtle'; verbose?: boolean; graphType?: string; }): Promise; /** * Per-extension credit rates for `tier` (e.g. `{ pdf: 4, ifc: 2, dwg: 2 }`), * read from the public `unit-credit.json` rate table. Used to show usage * estimates (e.g. the sign-up plan-selection step) without an authenticated * project context. */ getUnitCredits(tier: 's' | 'm' | 'l'): Promise>; getConsumption(projectId: string): Promise; }