#!/usr/bin/env node import type { CliContext, ServerInfo } from './types.ts'; import type { PrefixLog } from './prefixLog.ts'; import { type ServerConfig } from './credentials.ts'; interface ServerCredentials { serverUrl: string; username: string; password: string; } /** * Sanitize server URL by removing trailing slashes, paths, queries, etc. */ export declare function sanitizeServerUrl(url: string): string; /** * Server config class — reads config once, all methods operate on the cached data. */ export declare class CliServerConfig { private config; private ctx; private cmdLog; private fs; constructor(ctx: CliContext, cmdLog: PrefixLog, config: ServerConfig); listServers(): ServerInfo[]; storeCredentials(serverUrl: string, username: string, password: string, options?: { setAsDefault?: boolean; authStore?: 'file'; }): Promise; retrieveCredentials(serverUrl: string, username: string): Promise; deleteCredentials(serverUrl: string, username: string): Promise; setDefaultServer(serverUrl: string, username: string): Promise; getDefaultServer(): Promise; getCredentialBackendName(): string; } /** * Read server config and return a CliServerConfig instance. * All methods on the returned object operate on the single read. */ export declare function readServerConfig(ctx: CliContext, cmdLog: PrefixLog): Promise; interface ResolvedSource { serverUrl: string; documentPath: string; username: string; password: string; auth: string; } /** * Parse a source argument and resolve credentials for the target server. */ export declare function resolveSource(ctx: CliContext, log: PrefixLog, source: string): Promise; /** * Read the CLI configuration file (uses default server or specified server) */ export declare function readConfig(ctx: CliContext, log: PrefixLog, serverUrl?: string, username?: string): Promise; export {}; //# sourceMappingURL=config.d.ts.map