/**
 * Connector Service — discovers, loads, and manages platform connector descriptors.
 * Handles detection of installed agent platforms and config file read/write.
 */
import type { ConnectorDescriptor } from '@markus/shared';
export interface DetectionResult {
    platform: string;
    displayName: string;
    installed: boolean;
    configPath?: string;
    binaryFound: boolean;
    running: boolean;
}
export interface ConnectResult {
    success: boolean;
    platform: string;
    externalAgentId: string;
    markusAgentId?: string;
    token?: string;
    configUpdated: boolean;
    error?: string;
}
/**
 * Load all connector descriptors from built-in + user directories.
 * User connectors override built-in ones with the same platform name.
 */
export declare function loadConnectors(): ConnectorDescriptor[];
/**
 * Find a specific connector by platform name.
 */
export declare function findConnector(platform: string): ConnectorDescriptor | undefined;
/**
 * Detect which agent platforms are installed on this machine.
 */
export declare function scanInstalledPlatforms(): DetectionResult[];
/**
 * Read the external platform's config file and return parsed JSON.
 */
export declare function readPlatformConfig(connector: ConnectorDescriptor): Record<string, unknown> | null;
/**
 * Write Markus connection info (URL + token) into the external platform's config.
 * Creates the config file if it doesn't exist.
 */
export declare function writePlatformConfig(connector: ConnectorDescriptor, markusUrl: string, token: string): boolean;
/**
 * Copy the Markus integration skill template to the external platform's skill dir.
 */
export declare function installSkillTemplate(connector: ConnectorDescriptor): boolean;
/**
 * Read LLM provider configs from the external platform's config.
 */
export declare function readPlatformLLMProviders(connector: ConnectorDescriptor): Record<string, unknown> | null;
//# sourceMappingURL=connector-service.d.ts.map