import type { CopilotSession } from "./session.js";
import type { ResumeSessionConfig } from "./types.js";
/**
 * Joins the current foreground session.
 *
 * @param config - Configuration to add to the session
 * @returns A promise that resolves with the joined session
 *
 * @example
 * ```typescript
 * import { approveAll } from "@github/copilot-sdk";
 * import { joinSession } from "@github/copilot-sdk/extension";
 *
 * const session = await joinSession({
 *   onPermissionRequest: approveAll,
 *   tools: [myTool],
 * });
 * ```
 */
export declare function joinSession(config: ResumeSessionConfig): Promise<CopilotSession>;
