/**
 * Server module for @pennyfarthing/core.
 *
 * WheelHub Express server with all API routes, WebSocket support,
 * port management, settings initialization, and OTEL configuration.
 *
 * Extracted from packages/cyclist/src/server.ts (Story 98-17).
 */
import { type Express } from 'express';
import { type Server } from 'http';
import { clearSessionGrants } from './settings-store.js';
export { clearSessionGrants };
export { setOTLPProvider } from './otlp-receiver.js';
export type { OTLPProvider } from './otlp-receiver.js';
export { broadcastStats, initTokenStatsBroadcast, initBackgroundTaskBroadcast } from './api/index.js';
export { getStoryInfo } from './story-parser.js';
export type { StoryInfo, WorkflowStep, CriteriaItem } from './story-parser.js';
export { getGitInfo, getAllReposGitInfo, getAllReposGitInfoAsync } from './api/index.js';
export type { GitInfo } from './api/index.js';
export { publicDir, nodeModulesDir, portraitsDir, getProjectDirectory, getDistDir } from './paths.js';
export { setProjectDirectory, resetProjectDirectory, parseProjectDirArg, isValidProjectDirectory } from './paths.js';
import { isBikeRackMode } from './env.js';
export { isBikeRackMode };
export declare const app: Express;
declare function getProjectDir(): string;
export { getProjectDir };
export declare function createTerminalServer(): Server;
export declare function findAvailablePort(startPort: number, maxAttempts?: number): Promise<number>;
export declare function writePortFile(projectDir: string, port: number): void;
export declare function cleanupPortFile(projectDir: string): void;
export declare function readPortFile(projectDir: string): number | null;
export declare function writePidFile(projectDir: string, pid: number): void;
export declare function cleanupPidFile(projectDir: string): void;
export declare function readPidFile(projectDir: string): number | null;
export declare function isProcessRunning(pid: number): boolean;
export interface OtelConfig extends Record<string, string> {
    CLAUDE_CODE_ENABLE_TELEMETRY: string;
    OTEL_LOGS_EXPORTER: string;
    OTEL_METRICS_EXPORTER: string;
    OTEL_EXPORTER_OTLP_PROTOCOL: string;
    OTEL_EXPORTER_OTLP_ENDPOINT: string;
}
export declare function getOtelConfig(projectDir: string): OtelConfig | null;
//# sourceMappingURL=server.d.ts.map