/** * Credential resolution for Moteur API access. * Environment variables (MOTEUR_TOKEN, MOTEUR_API_URL) take precedence and are * used exclusively by web Atelier sessions; when present, config files are never touched. * Safe to load in browser: no Node globals or modules at top level. */ export interface MoteurCredentials { token?: string; apiKey?: string; apiUrl: string; projectId: string | null; source: 'environment' | 'file'; } export declare class MoteurClientError extends Error { code: string; hint?: string; constructor(options: { code: string; message: string; hint?: string; }); } export declare function getConfigPath(): string; export declare function readConfigFile(): Promise; /** * Resolve credentials for API access. * Precedence: `MOTEUR_TOKEN` → `MOTEUR_API_KEY` (+ URL + project) → config file. * When credentials come from environment variables, config files are not read. * In the browser, uses `import.meta.env` (Vite: `VITE_MOTEUR_*`) when `process.env` is unavailable. */ export declare function resolveCredentials(): Promise; //# sourceMappingURL=credentials.d.ts.map