import { Activity, Artifact, Outcome, RestArtifact, SessionResource } from './types.js'; /** * Maps a raw REST API Artifact resource to the SDK's `Artifact` type. * This now instantiates rich classes for certain artifact types. * * @param restArtifact The raw artifact object from the REST API. * @returns A structured `Artifact` object for the SDK. * @internal */ export declare function mapRestArtifactToSdkArtifact(restArtifact: RestArtifact, platform: any, activityId?: string): Artifact; /** * Maps a raw REST API Activity resource to the SDK's discriminated union `Activity` type. * * **Data Transformation:** * - Flattens nested union fields (e.g., `agentMessaged`) into a top-level `type` property. * - Extracts the short ID from the full resource `name`. * - Recursively maps all artifacts within the activity. * * @param restActivity The raw activity object from the REST API. * @param platform The platform adapter (needed for artifact mapping). * @returns A structured `Activity` object for the SDK. * @throws {Error} If the activity type is unknown. * @internal */ export declare function mapRestActivityToSdkActivity(restActivity: any, platform: any): Activity; /** * Maps the final state of a SessionResource to a user-facing Outcome object. * This includes extracting the primary pull request and handling the failed state. * * @param session The final SessionResource from the API. * @returns The corresponding Outcome object. * @throws {AutomatedSessionFailedError} If the session state is 'failed'. */ export declare function mapSessionResourceToOutcome(session: SessionResource): Outcome;