export declare const SPAWN_SESSION_ERROR_CODES: {
    readonly INVALID_REQUEST: "INVALID_REQUEST";
    readonly INVALID_ENVIRONMENT_VARIABLES: "INVALID_ENVIRONMENT_VARIABLES";
    readonly AUTH_ENV_UNEXPANDED: "AUTH_ENV_UNEXPANDED";
    readonly RESUME_NOT_SUPPORTED: "RESUME_NOT_SUPPORTED";
    readonly RESUME_MISSING_ENCRYPTION_KEY: "RESUME_MISSING_ENCRYPTION_KEY";
    readonly RESUME_UNSUPPORTED_ENCRYPTION_VARIANT: "RESUME_UNSUPPORTED_ENCRYPTION_VARIANT";
    readonly DIRECTORY_CREATE_FAILED: "DIRECTORY_CREATE_FAILED";
    readonly SPAWN_VALIDATION_FAILED: "SPAWN_VALIDATION_FAILED";
    readonly SPAWN_NO_PID: "SPAWN_NO_PID";
    readonly CHILD_EXITED_BEFORE_WEBHOOK: "CHILD_EXITED_BEFORE_WEBHOOK";
    readonly SESSION_WEBHOOK_TIMEOUT: "SESSION_WEBHOOK_TIMEOUT";
    readonly SPAWN_FAILED: "SPAWN_FAILED";
    readonly DAEMON_RPC_UNAVAILABLE: "DAEMON_RPC_UNAVAILABLE";
    readonly UNEXPECTED: "UNEXPECTED";
};
export type SpawnSessionErrorCode = (typeof SPAWN_SESSION_ERROR_CODES)[keyof typeof SPAWN_SESSION_ERROR_CODES];
export type SpawnSessionResult = {
    type: 'success';
    sessionId?: string;
} | {
    type: 'requestToApproveDirectoryCreation';
    directory: string;
} | {
    type: 'error';
    errorCode: SpawnSessionErrorCode;
    errorMessage: string;
};
//# sourceMappingURL=spawnSession.d.ts.map