export declare const DEFAULT_EXECUTOR_SERVER_ORIGIN = "http://127.0.0.1:4000";
export declare const DEFAULT_EXECUTOR_SERVER_USERNAME = "executor";
export type ExecutorServerConnectionKind = "http" | "desktop-sidecar";
export type ExecutorLocalServerKind = "cli-daemon" | "desktop-sidecar" | "foreground";
export type ExecutorServerAuth = {
    readonly kind: "basic";
    readonly username?: string;
    readonly password: string;
} | {
    readonly kind: "bearer";
    readonly token: string;
};
export interface ExecutorServerConnection {
    readonly kind: ExecutorServerConnectionKind;
    readonly key: string;
    readonly origin: string;
    readonly apiBaseUrl: string;
    readonly displayName: string;
    readonly auth?: ExecutorServerAuth;
}
export interface ExecutorServerConnectionInput {
    readonly kind?: ExecutorServerConnectionKind;
    readonly key?: string;
    readonly origin?: string;
    readonly apiBaseUrl?: string;
    readonly displayName?: string;
    readonly auth?: ExecutorServerAuth;
}
export interface ExecutorLocalServerManifest {
    readonly version: 1;
    readonly kind: ExecutorLocalServerKind;
    readonly pid: number;
    readonly startedAt: string;
    readonly dataDir: string;
    readonly scopeDir: string | null;
    readonly connection: ExecutorServerConnection;
    readonly owner: {
        readonly client: "cli" | "desktop";
        readonly version: string | null;
        readonly executablePath: string | null;
    };
}
export declare const normalizeExecutorServerOrigin: (raw: string) => string;
export declare const apiBaseUrlForServerOrigin: (origin: string) => string;
export declare const originFromApiBaseUrl: (raw: string) => string;
export declare const normalizeExecutorServerConnection: (input?: ExecutorServerConnectionInput) => ExecutorServerConnection;
export declare const getExecutorServerAuthorizationHeader: (connection: ExecutorServerConnection) => string | null;
export declare const parseExecutorLocalServerManifest: (raw: string) => ExecutorLocalServerManifest | null;
export declare const serializeExecutorLocalServerManifest: (manifest: ExecutorLocalServerManifest) => string;
//# sourceMappingURL=server-connection.d.ts.map